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?
xtpoisson with fixed effectsHello all, I have a panel dataset of 3 million observations, with each observation detailing the an…
Goodness of fit indices unavailable when using SEM with vce(robust), what's the reason?Hello All, I was able to find several posts asking why we can't get goodness of fit indices (RMSEA,…
Counterfactual binary choice modelHello, I want to do counterfactual for my binary choice model of schooling decision. Specifically, …
Minimum distance function / Stochastic Frontier AnalysisHi there: Does anyone know how to estimate a minimum distance function in Stata? I have the paramete…
Stata module tstfHello, Do folks have experience using the Stata module tstf to compute intervention time-series mod…
Subscribe to:
Post Comments (Atom)
0 Response to java ( sfi-api ) date format?
Post a Comment