VB.NET to Java : Timespan ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • forgeuk
    New Member
    • Nov 2006
    • 2

    #1

    VB.NET to Java : Timespan ?

    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:


    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
    It's the TimeSpan data type that I'm stuck on, I can't seem to find an equivelant in java.

    Thanks in advance...
  • forgeuk
    New Member
    • Nov 2006
    • 2

    #2
    Echo.......echo .......echo.... ..

    Its a bit quiet on here, found the answer on a proper Java message board, the answer is....Use a LONG data type.

    Comment

    Working...