Java equivalent to C#'s TimeSpan
Asked Answered
J

1

34

Does Java have a data type that represents a period of time eg 34 seconds, 5 minutes etc.

I've seen a few implementations of a TimeSpan that cover a Time period like from the 10th of December to the 11th of December.

What I need is something like TimeSpan in C#.

Joejoeann answered 13/1, 2009 at 17:21 Comment(0)
D
30

Not a part of the JDK currently, but will be incorporated in JDK 7 - try Joda Time

Deoxygenate answered 13/1, 2009 at 17:25 Comment(1)
I was gonna answer just that!Hunfredo

© 2022 - 2024 — McMap. All rights reserved.