OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: pankaj.puranik on August 21, 2013, 06:56:40 PM

Title: arsdate
Post by: pankaj.puranik on August 21, 2013, 06:56:40 PM
i have the following query which runs perfectly fine, meaning it gives me some results.
what does arsdate -1 imply?

arsdoc query -v -h ORSAPOH1-PHYS -u admin -p ondemand -f 'System Load' -i "where input_filename like '%%' and load_time between -1 and 1376989200"
Title: Re: arsdate
Post by: Alessandro Perucchi on August 22, 2013, 11:28:59 AM
Hello Pankaj,

since the date in CMOD is a internal numerical representation of a date, AND since the number is between 0 and max(Integer), then a -1 means only that you are sure you get everything from before the day 0 :-D

Sincerely yours,
Alessandro
Title: Re: arsdate
Post by: LWagner on October 11, 2013, 02:22:47 PM
Day 0 is January 1, 1970.

on the large value, it is the seconds from 01/01/1970 at midnight.
You can produce any midnight value in Excel using 86,400 * (date - 01/01/70)