Hello,
I am trying to convert the date in units, for example 613608, into a date variable preferable in the *MYD* format. The units are based on "hours since 1800-01-01 00:00:0.0". So in this case I believe 613608 should result in January 1st, 1870, which is the first date in the dataset. I have tried to look up the syntax for the datetime commands, but I am still very confused.
I have provided the code below with the first 4 observations in my dataset. Any help would be greatly appreciated.
Thank you!
I am trying to convert the date in units, for example 613608, into a date variable preferable in the *MYD* format. The units are based on "hours since 1800-01-01 00:00:0.0". So in this case I believe 613608 should result in January 1st, 1870, which is the first date in the dataset. I have tried to look up the syntax for the datetime commands, but I am still very confused.
I have provided the code below with the first 4 observations in my dataset. Any help would be greatly appreciated.
Code:
input long time float(lat lon pdsi) 613608 -46.25 168.75 .1647371 613608 -43.75 -73.75 .6625475 613608 -43.75 -71.25 .7405886 613608 -43.75 168.75 .10170344
Comment