Module jonix.onix3

Class SentDateTime

java.lang.Object
com.tectonica.jonix.onix3.SentDateTime
All Implemented Interfaces:
OnixElement<String>, OnixTag, Serializable

public class SentDateTime extends Object implements OnixElement<String>, Serializable

Message creation date/time

The date on which the message is sent. Optionally, the time may be added, using the 24-hour clock, with an explicit indication of the time zone if required, in a format based on ISO 8601. Mandatory and non-repeating.

Format Permitted formats, where 'T' and 'Z' represent themselves (ie the letters T and Z), and where the symbol '±' represents either '+' or '-' to indicate a timezone offset from UTC. YYYYMMDD Date only YYYYMMDDThhmm Date and time (local time of sender) YYYYMMDDThhmmZ Universal time (UTC) † YYYYMMDDThhmm±hhmm With time zone offset from UTC † YYYYMMDDThhmmss Date and time (with seconds) YYYYMMDDThhmmssZ Universal time (with seconds) YYYYMMDDThhmmss±hhmm With time zone offset from UTC (with seconds) † indicates the preferred formats
Reference name <SentDateTime>
Short tag <x307>
Cardinality 1
Example <x307>20100522T1230Z</x307> (12.30pm UTC, 22 May 2010)
Notes The calendar date must use the Gregorian calendar, even if other dates within the message use a different calendar. For all practical purposes, UTC is the same as GMT.

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • datestamp

      public String datestamp
      (type: dt.DateOrDateTime)
    • sourcename

      public String sourcename
      (type: dt.NonEmptyString)
    • sourcetype

      public RecordSourceTypes sourcetype
    • value

      public String value
      This is the raw content of SentDateTime. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Permitted formats, where 'T' and 'Z' represent themselves (ie the letters T and Z), and where the symbol '±' represents either '+' or '-' to indicate a timezone offset from UTC. YYYYMMDD Date only YYYYMMDDThhmm Date and time (local time of sender) YYYYMMDDThhmmZ Universal time (UTC) † YYYYMMDDThhmm±hhmm With time zone offset from UTC † YYYYMMDDThhmmss Date and time (with seconds) YYYYMMDDThhmmssZ Universal time (with seconds) YYYYMMDDThhmmss±hhmm With time zone offset from UTC (with seconds) † indicates the preferred formats

      (type: dt.DateOrDateTime)

    • EMPTY

      public static final SentDateTime EMPTY
  • Constructor Details

    • SentDateTime

      public SentDateTime()
    • SentDateTime

      public SentDateTime(Element element)
  • Method Details