public Calendar getTime ( String propName ) { assert propName . endsWith ( "Time" ) ; if ( ! m_properties . containsKey ( propName ) ) { return null ; } Calendar calendar = new GregorianCalendar ( Utils . UTC_TIMEZONE ) ; calendar . setTimeInMillis ( Long . parseLong ( m_properties . get ( propName ) ) ) ; return calendar ; }
Get the value of a time property as a Calendar value . If the given property has not been set or is not a time value null is returned .