public static Date getDateFromLong ( long date ) { TimeZone tz = TimeZone . getDefault ( ) ; return ( new Date ( date - tz . getRawOffset ( ) ) ) ; }
Creates a date from the equivalent long value . This conversion takes account of the time zone .