I'm developing a service using apache thrift and I need to define periods of time. Dates are significant (YYYY-mm-dd
) and time should be totally omitted (HH:ii:ss
). I couldn't find any specific date/datetime thrift data type so I'm thinking about two approaches:
more complex
int year, int month, int day,
less complex but includes time of day part which I don't need.
int timestamp
Is there a common thrift approach to represent date(time) types?