Welcome, Guest Login

Support Center

Working with Date & Time

Last Updated: Feb 10, 2017 03:01PM EST
Date & Time


Date & Time are stored together in the EPOCH number.
That's essentially one single long number defining the number of seconds since Jan 1st 1970.
EachScape gives access, via system value, to both GMT and Local device time, respectively "Device Date & Time (GMT)" and "Device Date and Time (Local)"
Because date & time are stored as a unique EPOCH number you can easily, add and substrate time intervals.
Use the Math Formatter to add and substrate making sure to translate in seconds.
You can also Format Date and Time using the 'Format Date & Time' Formatter.

Tutorial App

Click here to install 'Date & Time' Tutorial app in your environment.

'Device Date & Time': System Values
You can get the current time either by using [[sys:gmtTime]] or [[sys:localTime]] from the list of System Values.

Formatting Date & Time
The Tutorial app illustrate how to format the EPOCH number to display the Date, or the Time or Both.

Here is a formatting illustration from this app:
[[sys:localTime:formatDate M/d/yyyy 'at' H.mm.ss]]

The Formatter 'formatDate' is applied to the system value variable 'localTime'

The parameter of that Formatter are standard UNIX date & time configurators.
Here's a Tutorial on Formatting a Date.

Add & Substrate Time Period

Date & Time are stored as an integer (Epoch number) representing the number of seconds since Jan 1st 1970.
Add or removing time becomes a simple matter of adding or subtracting 2 integer both expressed in SECONDS
Here is a Tutorial on Date & Time Calculation

Learn More
- Date & Time Calculation
- Formatting Date & Time

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found