I'm new to Java, and I'm converting a VB.NET program to Java and learning as I go along, I'm a bit stuck on one bit, how would I convert this VB.NET function to Java:
It's the TimeSpan data type that I'm stuck on, I can't seem to find an equivelant in java.
Thanks in advance...
Code:
Public Function Diff(ByVal date As Julian) As TimeSpan
Const TICKS_PER_DAY As Double = 864000000000
Return New TimeSpan(CType(((m_Date - date.m_Date) * TICKS_PER_DAY), Long))
End Function
Thanks in advance...
Comment