Page tree
Skip to end of metadata
Go to start of metadata


Storage of Time/Date Values

Datameer stores and calculates dates as UNIX TimeDates are converted into milliseconds (returning the difference between the current time and midnight, January 1, 1970 UTC).

Example 

DateUnix Time Conversion
Jan 1,1970 00:00:011
Jan 1,2016 00:00:011451606401


Constants

A constant is an identifier whose associated value cannot typically be altered by the program during its execution.

Constant

Component

ms

milliseconds

s

seconds

m

minutes

h

hours

d

days

These time constants can be used when building formulas and functions as well as when using filters in order to manipulate time/date data. 


Examples of time/date constants

  1. Functions

  2. Filters

  3. Formulas 


Example of date/time constants within functions

*Today is October 10, 2012

Function(s)

Result

Function with constant

Result

TODAY()

Oct 10, 2012 12:00:00 AM

TODAY()-5h

Oct 09, 2012 07:00:00 PM

TODAY()

Oct 10, 2012 12:00:00 AM

TODAY()+8h+5m

Oct 10, 2012 08:05:00 AM

TIMESTAMP()

1,349,820,000,000

TIMESTAMP()+2d

1,349,992,800,000

TIMESTAMP()

1,349,820,000,000

TIMESTAMP()+45d+12h

1,353,751,200,000

 

 

Example of date/time constant within a filter

Original Data
 

Apply a Filter and choose Advanced 
Type in the filter you wish to apply including time constant if needed.
 

View the data on the filtered sheet
 

 

Example of date/time constant within a formula

Original Data

Open a calculation workbook sheet and create your formula
 

View the formula results
 

 

Modifying Date/Time

Modify values with a data date type using the ADDTODATE function. This function allows for both adding and subtracting from dates and times and takes daylights savings time and leap years into account. 

Operators (+/-) outside the ADDTODATE function are not supported.

  • No labels