コード例 #1
0
 public Time getTimeValue()
 {
     if (value is long)
     {
         return(Datetime.newInstance((long)value).timeGmt());
     }
     if (value is string)
     {
         return(Datetime.valueOfGmt(((string)value).replace("T", " ")).timeGmt());
     }
     throw new InvalidConversionException("Only Long and String values can be converted to a Time: " + toStringPretty());
 }