Forum Discussion
tstack
6 years agoFormer Employee
I’m not sure what you’re asking here since getTime()
, by definition, returns the epoch timestamp, which is UTC.
- shane6 years agoNew Contributor II
I don’t think you read the issue fully. I DON’T want UTC based timestamp and you cannot call getTime() on LocalDateTime or LocalDate which is used to create a non-UTC Date object. I cannot find a way to get the timestamp for a non-UTC Date.
It doesn’t matter I guess as I altered the called service to accommodate things.
- tstack6 years agoFormer Employee
In general, a timestamp is the number of seconds/milliseconds from the epoch, where the epoch is defined as January 1st, 1970 00:00:00 UTC. So, a timestamp is pretty much always going to be based in UTC. Asking for a non-UTC timestamp is highly unusual.