Difference between revisions of "Today"

m (Explain parameters and behavior)
Line 5: Line 5:
 
===Today()===
 
===Today()===
  
Returns the date number for the day on which the function is evaluated. Unlike other functions, it gives a different value every day the model is run.
+
Returns the current date. If you set optional parameter <code>withTime: True<\code>, it includes the current time.
 +
You should set the number format to show data and time to see the time.  By default the time uses the time zone set
 +
in the Windows OS. If you set optional parameter <code>UTC: True<\code>, it returns the date and time using universal time code (UTC)
 +
formerly known as Greenwich Mean Time (GMT).
 +
 
 +
If a variable contains Today() in its definition, its value will be based on the date and time when it was last evaluated
 +
within the current model session. So it may become of date unless you cause it to be re-evaluated.  
  
 
;Library: Date functions
 
;Library: Date functions

Revision as of 00:54, 18 November 2012


Today()

Returns the current date. If you set optional parameter withTime: True<\code>, it includes the current time. You should set the number format to show data and time to see the time. By default the time uses the time zone set in the Windows OS. If you set optional parameter UTC: True<\code>, it returns the date and time using universal time code (UTC) formerly known as Greenwich Mean Time (GMT).

If a variable contains Today() in its definition, its value will be based on the date and time when it was last evaluated within the current model session. So it may become of date unless you cause it to be re-evaluated.

Library
Date functions
Comments


You are not allowed to post comments.