julian = '12123'
prevYear = julian~left(2)~right(2,'0')-1
lastYear = '20' || prevyear || '1231'
days = date('B',lastyear,'S')+ julian~right(3)
TheDate = date('S',Days,'B','-')
say julian '=' theDate
say '------------'
julian = '12123'
prevYear = '20'||julian~left(2)~right(2,'0')-1
day = .DateTime~new(prevYear, 12, 31)
theDate = day~addDays(julian~right(3))
say julian '=' theDate~string~left(10)
Från: Staffan Tylen
Skickat: lördag den 30 maj 2015 16:18
Till: Open Object Rexx Users
There is probably a very easy answer to this question but I just don't see it:
how can I convert a julian date such as 12123 (year 2012 day 123) to yyyy-mm-dd
format? From what I see the D option only seems to work for the current year.
Regards,
Staffan
------------------------------------------------------------------------------
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users