Class UTCTimestamp

java.lang.Object
org.ivoa.dm.registry.voresource.UTCTimestamp
All Implemented Interfaces:
Serializable

@VoDml(id="VOResource:UTCTimestamp", role=primitiveType) @Embeddable public class UTCTimestamp extends Object implements Serializable
A timestamp that is compliant with ISO8601 and fixes the timezone indicator, if present, to 'Z' (UTC). VOResource writers should always include the timezone marker. VOResource readers must interpret timestamps without a timezone marker as UTC. PrimitiveType UTCTimestamp :
See Also:
  • Constructor Details

    • UTCTimestamp

      protected UTCTimestamp()
      no arg constructor.
    • UTCTimestamp

      public UTCTimestamp(UTCTimestamp c)
      copy constructor.
      Parameters:
      c - the object to be copied.
    • UTCTimestamp

      public UTCTimestamp(Date v)
      Creates a new UTCTimestamp Primitive Type instance, using the base type.
      Parameters:
      v - the base type.
  • Method Details

    • value

      public final Date value()
      Return the representation of this primitive (value)
      Returns:
      string representation of this primitive( value)
    • toString

      public final String toString()
      Return the string representation of this primitive value
      Overrides:
      toString in class Object
      Returns:
      string representation of this primitive
      See Also: