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?
Should we winsorize the interaction variables ?I have two variable, a and b a is a normal vari b is a dummy ( 0 and 1) c = a*b c is for interation …
mvprobitDear Statusers, I’m writing for a question on the package mvprobit. I’m estimating a mvprobit for 5 …
Interpreting the results from Loneway commandHi, I was hoping someone could help me. I ran the command Loneway recycling acode Where recycling i…
Whether to include squared terms with OLS or notHi all, I am running a regression on logged hourly pay and was wondering how to test whether I shou…
Advice on survival analysis setupHello everyone, I’m hoping to solicit some advice from those of you that are familiar with survival…
Subscribe to:
Post Comments (Atom)
0 Response to java ( sfi-api ) date format?
Post a Comment