[ncl-talk] Help on time units qualifiers
Mateus da Silva Teixeira
mateusstex at gmail.com
Tue Aug 21 06:48:06 MDT 2018
Hi,
I'm testing date functions and noted that the usage of different units
qualifiers: "since", "after", "from" and "ref" has no impact on results
from cd_inv_calendar_function(). See my example below:
*dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days since
0001-01-01 00:00:00", 0 )print( dataTeste+" <=== since" )dataTeste =
cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days after 0001-01-01 00:00:00",
0 )print( dataTeste+" <=== after" )dataTeste = cd_inv_calendar( 2018, 08,
21, 09, 30, 0, "days from 0001-01-01 00:00:00", 0 )print( dataTeste+" <===
from" )dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days ref
0001-01-01 00:00:00", 0 )print( dataTeste+" <=== ref" )*
and the output:
(0) 736928.3958333334 <=== since
(0) 736928.3958333334 <=== after
(0) 736928.3958333334 <=== from
(0) 736928.3958333334 <=== ref
Is it correct?
If yes, what the purpose of these units qualifiers?
Thank you!
Mateus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180821/c47158e5/attachment.html>
More information about the ncl-talk
mailing list