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?
Creating District Month PanelDear All, I hope you are doing well. I wanted to create two dataset from my raw data 1) district da…
empty model in mulitple imputations framework (mixed models)Dear all, I am currently analyzed data with missing data. In complete case analysis framework, the…
Generate dummy from stringsDear members, Below is my data column where respondents selected various sources of water. I would l…
Using summarize after svy: mean with direct standardisationHello, I am running the descriptive statistics for continuous variable that contains number of visi…
random intercept in mixed effect modelDear all, I am trying to run a mixed effect model across 10 different clinical trials to obtain int…
Subscribe to:
Post Comments (Atom)
0 Response to java ( sfi-api ) date format?
Post a Comment