I did not find in the Java api documentation ( https://www.stata.com/java/api/index...e-summary.html ) a way to parse a stata datetime.
Under stata for instance, a datetime is stored as a double, where "30apr2020 19:58:00" is stored as the double 1903895880000.
It seems that the stata python api has a way to convert from dates stored as double to each individual constituent of a date (hour, minute, etc.): https://www.stata.com/python/api16/Datetime.html but I did not find the java equivalent.
How to extract the day, month, year, hour, minute, second from a datetime stored as double, i.e. 1903895520000 under java. Or simply, how are dates encoded from (day, month, year, hour, minute, second) to a double, so I can write the function helper to convert this to something usable under java.
Thank you for reading.
0 Response to java ( sfi-api ) date format?
Post a Comment