ProgramixGenericLib v5.0.1

Uses of Class
com.programix.time.DateTime

Packages that use DateTime
com.programix.time Various containers and tools for dealing with dates and times (including parsing and formatting). 
com.programix.value The Value framework for encapsulating "values" generically in a way that they can be coerced into other types. 
 

Uses of DateTime in com.programix.time
 

Fields in com.programix.time declared as DateTime
static DateTime DateTimeRange.OPEN
          This constant can be used to specify that either the start or end of of the range is "open" (that is, it is not defined and can be considered to stretch out to infinity).
 

Methods in com.programix.time that return DateTime
static DateTime DateTools.addDays(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addDays(DateTime startTime, int numberOfDays, TimeZone tz)
           
static DateTime DateTools.addDaysLocal(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addDaysUTC(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addHours(DateTime startTime, int numberOfHours)
          Returns a new DateTime shifted by the specified number of hours.
static DateTime DateTools.addMilliseconds(DateTime startTime, int numberOfMilliseconds)
          Returns a new DateTime shifted by the specified number of milliseconds.
static DateTime DateTools.addMinutes(DateTime startTime, int numberOfMinutes)
          Returns a new DateTime shifted by the specified number of minutes.
static DateTime DateTools.addSeconds(DateTime startTime, int numberOfSeconds)
          Returns a new DateTime shifted by the specified number of seconds.
 DateTime DateTimeRange.forceIntoRange(DateTime value)
          Forces the specified DateTime into this range.
static DateTime DateTools.getDateTime(int year, int month, int day, TimeZone tz)
          Returns the moment in time for noon on the specific year, month, and day in the specified timezone.
static DateTime DateTools.getDateTimeLocal(int year, int month, int day)
          Returns the moment in time for noon on the specific year, month, and day in the VM's local timezone.
static DateTime DateTools.getDateTimeUTC(int year, int month, int day)
          Returns the moment in time for noon on the specific year, month, and day in the UTC timezone.
 DateTime DateTimeRange.getEnd()
          Returns the end of this range.
static DateTime DateTools.getNow()
          Returns a DateTime that represents now (the current moment in time) as reported by DateTools.getTime().
 DateTime DateTimeRange.getStart()
          Returns the start of this range.
static DateTime DateTools.getToday(TimeZone tz)
          Returns a DateTime that represents noon today in the specified timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getTodayLocal()
          Returns a DateTime that represents noon today in the VM's timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getTodayUTC()
          Returns a DateTime that represents noon today in the UTC timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getTomorrow(TimeZone tz)
          Returns a DateTime that represents noon tomorrow in the specified timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getTomorrowLocal()
          Returns a DateTime that represents noon tomorrow in the VM's timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getTomorrowUTC()
          Returns a DateTime that represents noon tomorrow in the UTC timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getYesterday(TimeZone tz)
          Returns a DateTime that represents noon yesterday in the specified timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getYesterdayLocal()
          Returns a DateTime that represents noon yesterday in the VM's timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.getYesterdayUTC()
          Returns a DateTime that represents noon yesterday in the UTC timezone for the date/time reported by DateTools.getTime().
static DateTime DateTools.parse(String dateTimeStr, TimeZone tz)
          Attempts to interpret the string passed in as a DateTime, defaulting to the specified timezone if necessary.
static DateTime DateTools.parseLocal(String dateTimeStr)
          Returns a DateTime interpreted by parsing the supplied String, defaulting to the VM's timezone if necessary.
static DateTime DateTools.parseUTC(String dateTimeStr)
          Returns a DateTime interpreted by parsing the supplied String, defaulting to the UTC timezone if necessary.
 DateTime PlainDate.toDateTime(TimeZone tz)
          Converts this PlainDate into a DateTime using noon for the time of day and using the specified timezone.
 DateTime PlainDate.toDateTimeLocal()
          Converts this PlainDate into a DateTime using noon for the time of day and using the local Java VM's timezone.
 DateTime PlainDate.toDateTimeUTC()
          Converts this PlainDate into a DateTime using noon for the time of day and using the UTC timezone.
 

Methods in com.programix.time with parameters of type DateTime
static DateTime DateTools.addDays(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addDays(DateTime startTime, int numberOfDays, TimeZone tz)
           
static DateTime DateTools.addDaysLocal(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addDaysUTC(DateTime startTime, int numberOfDays)
           
static DateTime DateTools.addHours(DateTime startTime, int numberOfHours)
          Returns a new DateTime shifted by the specified number of hours.
static DateTime DateTools.addMilliseconds(DateTime startTime, int numberOfMilliseconds)
          Returns a new DateTime shifted by the specified number of milliseconds.
static DateTime DateTools.addMinutes(DateTime startTime, int numberOfMinutes)
          Returns a new DateTime shifted by the specified number of minutes.
static DateTime DateTools.addSeconds(DateTime startTime, int numberOfSeconds)
          Returns a new DateTime shifted by the specified number of seconds.
 boolean DateTime.after(DateTime otherDateTime)
          Returns true if the this instance's time comes after the time passed as a parameter.
 boolean DateTime.afterOrEqualTo(DateTime otherDateTime)
          Returns true if the this instance's time comes after or is the same as the time passed as a parameter.
 boolean DateTime.before(DateTime otherDateTime)
          Returns true if the this instance's time comes before the time passed as a parameter.
 boolean DateTime.beforeOrEqualTo(DateTime otherDateTime)
          Returns true if the this instance's time comes before or is the same as the time passed as a parameter.
static double DateTools.calculateDayDifference(DateTime startTime, DateTime endTime)
          Calculated the number of days from the startTime to the endTime.
 int DateTime.compareTo(DateTime otherDateTime)
          Returns -1 if this instance's time comes before the passed time, 0 if they are the same, and -1 if the passed time comes after.
 boolean DateTimeRange.contains(DateTime dateTime)
          Returns true if the specified DateTime falls within this range (inclusive of both endpoints).
static DateTimeRange DateTimeRange.createWithOpenEnd(DateTime start)
          Creates a new instance with an open end time and the specified start time.
static DateTimeRange DateTimeRange.createWithOpenStart(DateTime end)
          Creates a new instance with an open start and the specified end date.
 boolean DateTime.equals(DateTime otherDateTime)
          Returns true if this instance's time matches the passed time exactly to the millisecond.
 DateTime DateTimeRange.forceIntoRange(DateTime value)
          Forces the specified DateTime into this range.
static String DateTools.format(DateTimeFormat dtf, DateTime dateTime, TimeZone tz)
          Formats the specified DateTime for the specified timezone.
static String DateTools.format(DateTime dateTime, TimeZone tz)
          Formats the specified DateTime for the specified timezone.
static String DateTools.format(String formatPattern, DateTime dateTime, TimeZone tz)
          Formats the specified DateTime for the specified timezone using the specified pattern.
static String DateTools.formatLocal(DateTime dateTime)
          Formats the specified DateTime for the VM's timezone.
static String DateTools.formatLocal(DateTimeFormat dtf, DateTime dateTime)
          Formats the specified DateTime for the VM's timezone.
static String DateTools.formatLocal(String formatPattern, DateTime dateTime)
          Formats the specified DateTime for the VM's timezone using the specified pattern.
static String DateTools.formatUTC(DateTime dateTime)
          Formats the specified DateTime for the UTC timezone.
static String DateTools.formatUTC(DateTimeFormat dtf, DateTime dateTime)
          Formats the specified DateTime for the UTC timezone.
static String DateTools.formatUTC(String formatPattern, DateTime dateTime)
          Formats the specified DateTime for the UTC timezone using the specified pattern.
static PlainDate DateTools.getPlainDate(DateTime dateTime, TimeZone tz)
          Returns the specified moment in time as a PlainDate interpreted in the specified timezone.
static PlainDate DateTools.getPlainDateLocal(DateTime dateTime)
          Returns the specified moment in time as a PlainDate interpreted in the local VM timezone.
static PlainDate DateTools.getPlainDateUTC(DateTime dateTime)
          Returns the specified moment in time as a PlainDate interpreted in the UTC timezone.
 DateTimeRange DateTimeRange.setEnd(DateTime newEnd)
          Returns a new instance with the specified newEnd date and this instance's start date.
 DateTimeRange DateTimeRange.setStart(DateTime newStart)
          Returns a new instance with the specified start date and this instance's end time.
 

Constructors in com.programix.time with parameters of type DateTime
DateTimeRange(DateTime start, DateTime end)
          Creates a new instance with the specified start and end times.
DateTools.OffsetTimeSource(DateTime startDate)
          Create an offset to apply to the real current time.
 

Uses of DateTime in com.programix.value
 

Methods in com.programix.value that return DateTime
 DateTime AbstractValue.getDateTime()
           
 DateTime Value.getDateTime()
          Returns the encapsulated value interpreted as a DateTime assuming the UTC timezone if necessary.
 DateTime ValueMap.getDateTime(String key)
          Returns the value stored under the specified required key as a DateTime (defaulting to the UTC timezone if necessary).
 DateTime ValueMap.getDateTime(String key, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the UTC timezone if necessary).
 DateTime ValueMap.getDateTime(String key, TimeZone tz)
          Returns the value stored under the specified required key as a DateTime (defaulting to the specified timezone if necessary).
 DateTime ValueMap.getDateTime(String key, TimeZone tz, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the specified timezone if necessary).
 DateTime AbstractValue.getDateTime(TimeZone defaultTimeZone)
           
 DateTime Value.getDateTime(TimeZone defaultTimeZone)
          Returns the encapsulated value interpreted as a DateTime assuming the specified timezone if necessary.
 DateTime AbstractValue.getDateTimeLocal()
           
 DateTime Value.getDateTimeLocal()
          Returns the encapsulated value interpreted as a DateTime assuming the local VM's timezone if necessary.
 DateTime ValueMap.getDateTimeLocal(String key)
          Returns the value stored under the specified required key as a DateTime (defaulting to the local VM's timezone if necessary).
 DateTime ValueMap.getDateTimeLocal(String key, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the local VM's timezone if necessary).
 DateTime AbstractValue.getDateTimeLocalOrNull()
           
 DateTime Value.getDateTimeLocalOrNull()
          Returns the result as a DateTime or null if the value is empty (using the local VM's timezone for interpretation if necessary).
 DateTime AbstractValue.getDateTimeOrNull()
           
 DateTime Value.getDateTimeOrNull()
          Returns the result as a DateTime or null if the value is empty (using the UTC timezone for interpretation if necessary).
 DateTime AbstractValue.getDateTimeOrNull(TimeZone defaultTimeZone)
           
 DateTime Value.getDateTimeOrNull(TimeZone defaultTimeZone)
          Returns the result as a DateTime or null if the value is empty (using the specified timezone for interpretation if necessary).
 

Methods in com.programix.value with parameters of type DateTime
static Value ValueFactory.create(DateTime dateTime)
          Creates a instance encapsulating the specified DateTime value.
 DateTime ValueMap.getDateTime(String key, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the UTC timezone if necessary).
 DateTime ValueMap.getDateTime(String key, TimeZone tz, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the specified timezone if necessary).
 DateTime ValueMap.getDateTimeLocal(String key, DateTime defaultValue)
          Returns the value stored under the specified optional key as a DateTime (defaulting to the local VM's timezone if necessary).
 


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.