webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <DateComponents.h>
Public Types | |
enum | Type { Invalid, Date, DateTime, DateTimeLocal, Month, Time, Week, Invalid, Date, DateTime, DateTimeLocal, Month, Time, Week } |
enum | SecondFormat { None, Second, Millisecond, None, Second, Millisecond } |
enum | Type { Invalid, Date, DateTime, DateTimeLocal, Month, Time, Week, Invalid, Date, DateTime, DateTimeLocal, Month, Time, Week } |
enum | SecondFormat { None, Second, Millisecond, None, Second, Millisecond } |
Public Member Functions | |
DateComponents () | |
int | millisecond () const |
int | second () const |
int | minute () const |
int | hour () const |
int | monthDay () const |
int | month () const |
int | fullYear () const |
int | week () const |
Type | type () const |
String | toString (SecondFormat format=None) const |
bool | parseMonth (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDate (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseWeek (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseTime (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDateTimeLocal (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDateTime (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | setMillisecondsSinceEpochForDate (double ms) |
bool | setMillisecondsSinceEpochForDateTime (double ms) |
bool | setMillisecondsSinceEpochForDateTimeLocal (double ms) |
bool | setMillisecondsSinceEpochForMonth (double ms) |
bool | setMillisecondsSinceEpochForWeek (double ms) |
bool | setMillisecondsSinceMidnight (double ms) |
bool | setMonthsSinceEpoch (double months) |
double | millisecondsSinceEpoch () const |
double | monthsSinceEpoch () const |
DateComponents () | |
int | millisecond () const |
int | second () const |
int | minute () const |
int | hour () const |
int | monthDay () const |
int | month () const |
int | fullYear () const |
int | week () const |
Type | type () const |
String | toString (SecondFormat format=None) const |
bool | parseMonth (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDate (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseWeek (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseTime (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDateTimeLocal (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | parseDateTime (const UChar *src, unsigned length, unsigned start, unsigned &end) |
bool | setMillisecondsSinceEpochForDate (double ms) |
bool | setMillisecondsSinceEpochForDateTime (double ms) |
bool | setMillisecondsSinceEpochForDateTimeLocal (double ms) |
bool | setMillisecondsSinceEpochForMonth (double ms) |
bool | setMillisecondsSinceEpochForWeek (double ms) |
bool | setMillisecondsSinceMidnight (double ms) |
bool | setMonthsSinceEpoch (double months) |
double | millisecondsSinceEpoch () const |
double | monthsSinceEpoch () const |
Static Public Member Functions | |
static double | invalidMilliseconds () |
static double | minimumDate () |
static double | minimumDateTime () |
static double | minimumMonth () |
static double | minimumTime () |
static double | minimumWeek () |
static double | maximumDate () |
static double | maximumDateTime () |
static double | maximumMonth () |
static double | maximumTime () |
static double | maximumWeek () |
static int | minimumYear () |
static int | maximumYear () |
static double | invalidMilliseconds () |
static double | minimumDate () |
static double | minimumDateTime () |
static double | minimumMonth () |
static double | minimumTime () |
static double | minimumWeek () |
static double | maximumDate () |
static double | maximumDateTime () |
static double | maximumMonth () |
static double | maximumTime () |
static double | maximumWeek () |
static int | minimumYear () |
static int | maximumYear () |
Static Public Attributes | |
static const int | minimumWeekNumber = 1 |
static const int | maximumWeekNumber = 53 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
double WebCore::DateComponents::millisecondsSinceEpoch | ( | ) | const |
double WebCore::DateComponents::millisecondsSinceEpoch | ( | ) | const |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
double WebCore::DateComponents::monthsSinceEpoch | ( | ) | const |
double WebCore::DateComponents::monthsSinceEpoch | ( | ) | const |
bool WebCore::DateComponents::parseDate | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseDate | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseDateTime | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseDateTime | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseDateTimeLocal | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseDateTimeLocal | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseMonth | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseMonth | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseTime | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseTime | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseWeek | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
bool WebCore::DateComponents::parseWeek | ( | const UChar * | src, |
unsigned | length, | ||
unsigned | start, | ||
unsigned & | end | ||
) |
|
inline |
|
inline |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDate | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDate | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDateTime | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDateTime | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDateTimeLocal | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForDateTimeLocal | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForMonth | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForMonth | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForWeek | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceEpochForWeek | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceMidnight | ( | double | ms | ) |
bool WebCore::DateComponents::setMillisecondsSinceMidnight | ( | double | ms | ) |
bool WebCore::DateComponents::setMonthsSinceEpoch | ( | double | months | ) |
bool WebCore::DateComponents::setMonthsSinceEpoch | ( | double | months | ) |
String WebCore::DateComponents::toString | ( | SecondFormat | format = None | ) | const |
String WebCore::DateComponents::toString | ( | SecondFormat | format = None | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |