Class Timestamp


  • public class Timestamp
    extends PrimitiveType<java.lang.String>
    Primitive type that represents an ISO 8601 timestamp.
    • Constructor Detail

      • Timestamp

        public Timestamp​(java.lang.String value)
                  throws java.lang.IllegalArgumentException,
                         java.lang.UnsupportedOperationException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.UnsupportedOperationException
    • Method Detail

      • valueOf

        public static Timestamp valueOf​(java.lang.String value)
        Returns a Timestamp object holding the value of the specified string, or null if parsing failed.
        Parameters:
        value - The string to be parsed.
        Returns:
        See above.
      • asInstant

        public org.joda.time.Instant asInstant()
        Returns the timestamp as a Joda DateTime type.
        Returns:
        See above.
      • asDateTime

        public org.joda.time.DateTime asDateTime​(org.joda.time.DateTimeZone zone)
        Returns the timestamp as a Joda DateTime type.
        Parameters:
        zone - the DateTime instance uses the specified timezone, or the default zone if null.
        Returns:
        See above.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PrimitiveType<java.lang.String>