Difference between revisions of "Manuals/calci/NOW"

From ZCubes Wiki
Jump to navigation Jump to search
Line 14: Line 14:
  
 
== Examples ==
 
== Examples ==
 +
1) The NOW() function displays the ouput in ZOS as follows -
  
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
Line 24: Line 25:
 
|- class="odd"
 
|- class="odd"
 
| class="sshl_f" |NOW()
 
| class="sshl_f" |NOW()
| class="sshl_f" |41722.70444444445
+
| class="sshl_f" |41724.771261574075
  
 
|- class="even"
 
|- class="even"
Line 30: Line 31:
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
|}
 +
 +
2) The NOW() function displays the output in Calci as follows -
 +
 +
=NOW() : Returns the result as '''Wed Mar 26 2014 19:28:19 GMT-0400 (Eastern Daylight Time)'''
  
 
== See Also ==
 
== See Also ==

Revision as of 16:30, 26 March 2014

NOW()

NOW() displays the serial number of current date and time.

Description

NOW()

  • Dates are stored in the form of sequential numbers so that they can be used in calculations. e.g. January 1, 1900 is stored as serial number 1 and so on.
  • Numbers to the left of decimal point represent serial number of current date.
  • Numbers to the right of decimal point represent serial number of current time.
  • This function does not have any arguments.
  • TODAY() function can be used to display the serial number of today's date only.

Examples

1) The NOW() function displays the ouput in ZOS as follows -

Function Output
NOW() 41724.771261574075

2) The NOW() function displays the output in Calci as follows -

=NOW() : Returns the result as Wed Mar 26 2014 19:28:19 GMT-0400 (Eastern Daylight Time)

See Also

References