[ncl-talk] manipulate date

jmason at eos.ubc.ca jmason at eos.ubc.ca
Fri Sep 26 12:22:52 MDT 2014


https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml

This works for me

Date = systemfunc("date '+%Y%m%d' --date '5 days'")

Jesse


> Dear ncl-team
>     I'm using the ncl 6.1.2 on imac Darwin 64bit
>     I need to calculate the resulting date in the form YYYYMMDD
> (year,mounth and day)
>     starting from an initial date YYYYMMDD of string type and adding a
> certain number of day
>     For example func("20140928" + 5 day) = "20141003"
>     Has ncl a routine that do this task?
>
>     thanks
> Francesco Trotta
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>




More information about the ncl-talk mailing list