datetime.d File Reference

Date and time manipulation. More...


Namespaces

namespace  smjg.libs.util.datetime
namespace  std.c.windows.windows

Classes

struct  smjg.libs.util.datetime.DateValue
 The smjg.libs.util.datetime.DateValue structure represents a calendar date. More...
struct  smjg.libs.util.datetime.TimeValue
 The smjg.libs.util.datetime.TimeValue structure represents a time within a day. More...
struct  smjg.libs.util.datetime.DateTime
 The smjg.libs.util.datetime.DateTime structure represents a combination of date and time. More...
struct  smjg.libs.util.datetime.DateTimeInterval
 The smjg.libs.util.datetime.DateTimeInterval structure represents an interval in both date and time. More...
class  smjg.libs.util.datetime.DateTimeException
 The smjg.libs.util.datetime.DateTimeException class is an exception thrown when a date/time operation fails, e.g. More...
struct  smjg.libs.util.datetime.DateTimeComponents
 The smjg.libs.util.datetime.DateTimeComponents structure represents a date and time in structured form. More...

Typedefs

typedef int smjg::libs::util::datetime.DateInterval
 The smjg.libs.util.datetime.DateInterval type represents an interval between date values, specified in days.
typedef int smjg::libs::util::datetime.TimeInterval
 The smjg.libs.util.datetime.TimeInterval type represents an interval between time values, specified in milliseconds.

Enumerations

enum  smjg::libs::util::datetime.DAY_OF_WEEK {
  smjg::libs::util::datetime.UNSPEC = byte.min, smjg::libs::util::datetime.SUN = 0,
  smjg::libs::util::datetime.MON, smjg::libs::util::datetime.TUE,
  smjg::libs::util::datetime.WED, smjg::libs::util::datetime.THU,
  smjg::libs::util::datetime.FRI, smjg::libs::util::datetime.SAT
}
 Constants representing the days of the week. More...
enum  smjg::libs::util::datetime.MONTH {
  smjg::libs::util::datetime.UNSPEC = byte.min, smjg::libs::util::datetime.JAN = 1,
  smjg::libs::util::datetime.FEB, smjg::libs::util::datetime.MAR,
  smjg::libs::util::datetime.APR, smjg::libs::util::datetime.MAY,
  smjg::libs::util::datetime.JUN, smjg::libs::util::datetime.JUL,
  smjg::libs::util::datetime.AUG, smjg::libs::util::datetime.SEP,
  smjg::libs::util::datetime.OCT, smjg::libs::util::datetime.NOV,
  smjg::libs::util::datetime.DEC
}
 Constants representing the months of the year. More...

Functions

bool smjg::libs::util::datetime.isLeapYear (int year)
 Determines whether the given year is a leap year.
int smjg::libs::util::datetime.GetDateFormatA (uint Locale, DWORD dwFlags, SYSTEMTIME *lpDate, LPCSTR lpFormat, LPSTR lpDateStr, int cchDate)
int smjg::libs::util::datetime.GetTimeFormatA (uint Locale, DWORD dwFlags, SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpTimeStr, int cchTime)
int smjg::libs::util::datetime.monthLength (int month, int year)
 Determines the length of a month.
return smjg::libs::util::datetime.MONTH_OFFSET (month< 3 &&isLeapYear(year))

Variables

const char[3][MONTH.max+1] smjg::libs::util::datetime.SHORT_DAY_NAME
 Short (three-letter) names of the days of the week.
const char[][MONTH.max+1] smjg::libs::util::datetime.LONG_DAY_NAME
 Full names of the days of the week.
const char[3][MONTH.max+1] smjg::libs::util::datetime.SHORT_MONTH_NAME
 Short (three-letter) names of the months of the year.
const char[][MONTH.max+1] smjg::libs::util::datetime.LONG_MONTH_NAME
 Full names of the months of the year.
const int smjg::libs::util::datetime.MONTH_LEN [MONTH.max+1]
 The length of each month in a common year.
int smjg::libs::util::datetime.timeZoneOffset
 The local time zone offset from UTC in minutes.
bool smjg::libs::util::datetime.allowFieldOverflow = false
 Whether to allow alignment fields to overflow.


Detailed Description

Date and time manipulation.


Generated on Sun Sep 13 19:50:27 2009 for Stewart's Utility Library by  doxygen 1.5.4