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.
Related Posts with java ( sfi-api ) date format?
ignore this! …
Testing code blocks Code: This is a test with 10 spaces between here> <and here. …
A question on using macro variableI am running several models and only wanted to export selected regression coefficients to excel. So …
testing code blocks Code: This is a test with 10 spaces between here> <and here. If you copy the code …
Create categorical variables from string variableHello! I have a problem: I have a dataset which include Chinese cities, however, they are stored in…
Subscribe to:
Post Comments (Atom)
0 Response to java ( sfi-api ) date format?
Post a Comment