Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Summary

This section describes the Primordium implementations of org.osid.calendaring.DateTime.

...

Code Block
titleGregorianUTCDateTimeSpecifier Example
GregorianUTCDateTime.GregorianUTCDateTimeSpecifier specifier = new GregorianUTCDateTime.GregorianUTCDateTimeSpecifier();
 
specifier.setYear(20122013);
specifier.setMonth(10);
specifier.setDay(30)
 
DateTime game6 = new GregorianUTCDateTime(specifier);

...

Code Block
    /**
     *  Gets an unknown date.
     *
     *  @return an unknown date
     */

    public static org.osid.calendaring.DateTime unknown()

Serialization

toString() will produce the same ISO-like output that can be parsed by valueOf().

Comparison Methods

  • isGreater(org.osid.calendaring.DateTime d) 
  • isLess(org.osid.calendaring.DateTime d)
  • isInclusive(org.osid.calendaring.DateTime d)
  • isExclusive(org.osid.calendaring.DateTime d)

...

thisexternal DateTimeisGreater()isLess()isInclusive()isExclusive()
2010-01-012011-01-01FTFT
20102010-06-06FFTF
2010-06-062010FFFF
2010-12-312010-12-30TFFT

 

Equality

Two DateTimes are equal if their calendar & time types, values within their respective granularities, and uncertainties are also equal. 

...

DateTime is just a communication vehicle with some bells, whistles, and too many late nights. Convert it to whatever you want but (just keep in mind that the range on the thing is very very large and someone send you some DateTimes from the "big freeze" – it could happen).

See Also

...