Difference between revisions of "Today"
m (→Today()) |
|||
Line 3: | Line 3: | ||
[[Category:Doc Status C]] <!-- For Lumina use, do not change --> | [[Category:Doc Status C]] <!-- For Lumina use, do not change --> | ||
− | + | ==Today(''withTime, utc'')== | |
− | Returns the current date (number of days since base date -- usually Jan 1, 1900. With optional parameter <code>withTime: True</code>, it includes the current time as a fraction of a day. Select a number format to show the date and/or time. By default, it uses the time zone set | + | Returns the current date (number of days since base date -- usually Jan 1, 1900. |
− | in the Windows OS. With optional parameter <code>UTC: True</code>, it returns the date and time for universal time code (UTC) | + | |
− | formerly known as Greenwich Mean Time (GMT). | + | With optional parameter <code>withTime: True</code>, it includes the current time as a fraction of a day. Select a number format to show the date and/or time. |
+ | |||
+ | By default, it uses the time zone set in the Windows OS. With optional parameter <code>UTC: True</code>, it returns the date and time for universal time code (UTC) formerly known as Greenwich Mean Time (GMT). | ||
If a variable contains Today() in its definition, e.g. | If a variable contains Today() in its definition, e.g. | ||
− | + | :<code>Variable Day := Today()</code> | |
− | its value will be based on the date and time when it was last evaluated | + | its value will be based on the date and time when it was last evaluated in the current model session. So, it will be out of date when you look at it later, unless you cause it to be re-evaluated. |
− | in the current model session. So, it will be out of date when you look at it | ||
− | later, unless you cause it to be re-evaluated. | ||
;Library: Date functions | ;Library: Date functions | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Date Functions]] |
Revision as of 21:12, 14 January 2016
Today(withTime, utc)
Returns the current date (number of days since base date -- usually Jan 1, 1900.
With optional parameter withTime: True
, it includes the current time as a fraction of a day. Select a number format to show the date and/or time.
By default, it uses the time zone set in the Windows OS. With optional parameter UTC: True
, it returns the date and time for universal time code (UTC) formerly known as Greenwich Mean Time (GMT).
If a variable contains Today() in its definition, e.g.
Variable Day := Today()
its value will be based on the date and time when it was last evaluated in the current model session. So, it will be out of date when you look at it later, unless you cause it to be re-evaluated.
- Library
- Date functions
See Also
Comments
Enable comment auto-refresher