public Date getTime ( String fieldName ) { try { if ( hasValue ( fieldName ) ) { return new Date ( Long . valueOf ( String . valueOf ( resultMap . get ( fieldName ) ) ) * 1000 ) ; } else { return null ; } } catch ( NumberFormatException e ) { throw new FqlException ( "Field '" + fieldName + "' is not a time." , e ) ; } }
Returns the value of the identified field as a Date . Time fields returned from an FQL query are expressed in terms of seconds since midnight January 1 1970 UTC .