Difference between revisions of "Manuals/calci/NOW"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''NOW()'''</div><br/>
 +
**NOW(), returns the serial number of the current date and time.
  
Syntax
+
== Description ==
  
</div></div>
+
NOW()
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
*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.
  
</div></div>
+
== Examples ==
----
+
1) The NOW() function displays the ouput in ZOS as follows -
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
<div id="6SpaceContent" class="zcontent" align="left">
  
</div></div>
+
{| id="TABLE3" class="SpreadSheet blue"
----
+
|- class="even"
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"
+
| class="  " | '''Function'''
 +
| class="  " | '''Output'''
 +
 
 +
|- class="odd"
 +
| class="sshl_f" |NOW()
 +
| class="sshl_f" |41724.771261574075
 +
 
 +
|- class="even"
 +
| 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)'''
 +
 
 +
 
 +
==Related Videos==
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">This function  gives the serial number of the current date and time.</font></font></font>
+
{{#ev:youtube|v=pTsu5Gyxl8A|280|center|Now}}
  
</div></div>
+
== See Also ==
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6"> '''<font face="Arial">NOW</font>'''</font></div></div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1</font></font></font>
+
*[[Manuals/calci/DATE | DATE]]
 +
*[[Manuals/calci/TIME | TIME]]
 +
*[[Manuals/calci/TODAY | TODAY]]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e =now() gives the curent date and time</font></font></font>
+
==References==
  
</div></div>
+
*[http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Date_formats Date Formats]
----
 
<div id="12SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE1" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | Wed Jan 16 15:03:59 UTC+0530 2008
 
| class="    sshl_f  " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="  " | Row2
 
| class="f52543                                          " |
 
| class="  SelectTD" |
 
<div id="12Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="12Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class="  " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''NOW'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">( )</font></font></font>
+
*[[Z_API_Functions | List of Main Z Functions]]
  
</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 13:38, 25 March 2019

NOW()


    • NOW(), returns the serial number of the 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)


Related Videos

Now

See Also

References