jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.dbutil
Class ISO8601Calendar

java.lang.Object
  extended byjava.util.Calendar
      extended byjava.util.GregorianCalendar
          extended byuk.co.weft.dbutil.ISO8601Calendar
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ISO8601Calendar
extends java.util.GregorianCalendar

A simple specialisation of a GregorianCalendar which renders itself as a string in ISO8601 format. I have commented elsewhere on the wanton overcomplication of the Java date handling code... I hope the person who designed it is for ever after forced to keep his diary using the output from GregorianCalendar.toString() as his date format.

Version:
$Revision: 1.3.4.1 $ This revision:
Author:
Simon Brooke, $Author: simon $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.GregorianCalendar
AD, BC
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
 
Constructor Summary
ISO8601Calendar()
           
 
Method Summary
 java.lang.String toString()
          Return an ISO8601 string representing the date/time represented by this Calendar
 
Methods inherited from class java.util.GregorianCalendar
add, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, hashCode, isLeapYear, roll, roll, setGregorianChange
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, clone, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, setTimeZone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISO8601Calendar

public ISO8601Calendar()
Method Detail

toString

public java.lang.String toString()
Return an ISO8601 string representing the date/time represented by this Calendar


jacquard 1.12.0 by The Web Engineering Factory and Toolworks