jgd
Class Util

java.lang.Object
  extended by jgd.Util

public class Util
extends java.lang.Object

Utils for GDS API

Author:
maso

Field Summary
private static long EPOCH_DIFF
          Difference between the Windows epoch (1601-01-01 00:00:00) and the Unix epoch (1970-01-01 00:00:00) in milliseconds: 11644473600000L.
 
Constructor Summary
Util()
           
 
Method Summary
static long dateToFileTime(java.util.Date date)
          Converts a Date into a filetime.
static java.util.Date filetimeToDate(long filetime)
          Converts a Windows FILETIME into a Date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EPOCH_DIFF

private static final long EPOCH_DIFF
Difference between the Windows epoch (1601-01-01 00:00:00) and the Unix epoch (1970-01-01 00:00:00) in milliseconds: 11644473600000L.

See Also:
Constant Field Values
Constructor Detail

Util

public Util()
Method Detail

filetimeToDate

public static java.util.Date filetimeToDate(long filetime)
Converts a Windows FILETIME into a Date.
The Windows FILETIME structure identifies a 64-bit integer specifying the number of 100-nanosecond intervals which have passed since January 1, 1601.


dateToFileTime

public static long dateToFileTime(java.util.Date date)
Converts a Date into a filetime.
The Windows FILETIME structure identifies a 64-bit integer specifying the number of 100-nanosecond intervals which have passed since January 1, 1601.



Copyright © 2007