atg.commerce.gifts
Class GiftlistDateUtil

java.lang.Object
  extended by atg.core.util.DateDoodads
      extended by atg.commerce.gifts.GiftlistDateUtil

public class GiftlistDateUtil
extends atg.core.util.DateDoodads

This object provides additional date functionality for giftlists. It exposes constants as properties.

See Also:
DateDoodads

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.core.util.DateDoodads
DAY_MILLIS, HOUR_MILLIS, kDays, kDaysAbbrev, kLastDates, kMonthNumbers, kMonths, kMonthsAbbrev, kMonthsAbbrevLower, kMonthsLower, MINUTE_MILLIS, SECOND_MILLIS, WEEK_MILLIS, YEAR_MILLIS
 
Constructor Summary
GiftlistDateUtil()
          Constructs an instanceof GiftlistDateUtil
 
Method Summary
 java.lang.String[] getDates()
          The dates of a month
 int[] getLastDates()
          The last dates in a month
 java.lang.String[] getMonths()
          The months of the year
 java.lang.String[] getYears()
          The years
static int monthInt(java.lang.String pMonth)
          Returns the 0-11 java.util.Date month value for a given month (English)
 void setDates(java.lang.String[] pDates)
          Sets property dates
 void setLastDates(int[] pLastDates)
          Sets property lastDates
 void setMonths(java.lang.String[] pMonths)
          Sets property months
 void setYears(java.lang.String[] pYears)
          Sets property years
 
Methods inherited from class atg.core.util.DateDoodads
approxIntervalString, dateFromDay, dateString, dateStringFourDigitYear, dateTimeString, dayString, dayStringAbbrev, httpDateString, httpDateString, httpDateStringOld, httpDateStringOld, internetTimeString, isLeapYear, lastDate, main, monthString, monthStringAbbrev, padString, sameDay, sameWeek, setThrowTwoDigitYearException, setTwoDigitWrapYear, stringDate, timeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

GiftlistDateUtil

public GiftlistDateUtil()
Constructs an instanceof GiftlistDateUtil

Method Detail

setMonths

public void setMonths(java.lang.String[] pMonths)
Sets property months

Parameters:
pMonths - This property exposes the months of the year constant.

getMonths

public java.lang.String[] getMonths()
The months of the year

Returns:
The months of the year

setDates

public void setDates(java.lang.String[] pDates)
Sets property dates

Parameters:
pDates - This property exposes dates in a month

getDates

public java.lang.String[] getDates()
The dates of a month

Returns:
The dates of a month

setYears

public void setYears(java.lang.String[] pYears)
Sets property years

Parameters:
pYears - This property exposes the years constant

getYears

public java.lang.String[] getYears()
The years

Returns:
The years

setLastDates

public void setLastDates(int[] pLastDates)
Sets property lastDates

Parameters:
pLastDates - This property exposes the last dates of a month constant

getLastDates

public int[] getLastDates()
The last dates in a month

Returns:
The last dates in a month

monthInt

public static int monthInt(java.lang.String pMonth)
Returns the 0-11 java.util.Date month value for a given month (English)

Parameters:
pMonth - Month January-December
See Also:
Date