![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qv4dateobject_p.h"
#include "qv4runtime_p.h"
#include "qv4symbol_p.h"
#include <QtCore/QDebug>
#include <QtCore/QDateTime>
#include <QtCore/private/qlocaltime_p.h>
#include <QtCore/QStringList>
#include <QtCore/QTimeZone>
#include <wtf/MathExtras.h>
Go to the source code of this file.
Functions | |
static double | TimeWithinDay (double t) |
static int | HourFromTime (double t) |
static int | MinFromTime (double t) |
static int | SecFromTime (double t) |
static int | msFromTime (double t) |
static double | Day (double t) |
static double | DaysInYear (double y) |
static double | DayFromYear (double y) |
static double | TimeFromYear (double y) |
static double | YearFromTime (double t) |
static bool | InLeapYear (double t) |
static double | DayWithinYear (double t) |
static double | MonthFromTime (double t) |
static double | DateFromTime (double t) |
static double | WeekDay (double t) |
static double | MakeTime (double hour, double min, double sec, double ms) |
static double | DayFromMonth (double month, double leap) |
static double | MakeDay (double year, double month, double day) |
static double | MakeDate (double day, double time) |
static double | DaylightSavingTA (double t, double localTZA) |
static double | LocalTime (double t, double localTZA) |
static double | UTC (double t, double localTZA) |
static double | currentTime () |
static double | TimeClip (double t) |
static double | ParseString (const QString &s, double localTZA) |
static QDateTime | ToDateTime (double t, QTimeZone zone) |
static QString | ToString (double t, double localTZA) |
static QString | ToUTCString (double t) |
static QString | ToDateString (double t) |
static QString | ToTimeString (double t) |
static QString | ToLocaleString (double t) |
static QString | ToLocaleDateString (double t) |
static QString | ToLocaleTimeString (double t) |
static double | getLocalTZA () |
DEFINE_OBJECT_VTABLE (DateObject) | |
DEFINE_OBJECT_VTABLE (DateCtor) | |
static void | addZeroPrefixedInt (QString &str, int num, int nDigits) |
Variables | |
static const double | HoursPerDay = 24.0 |
static const double | MinutesPerHour = 60.0 |
static const double | SecondsPerMinute = 60.0 |
static const double | msPerSecond = 1000.0 |
static const double | msPerMinute = 60000.0 |
static const double | msPerHour = 3600000.0 |
static const double | msPerDay = 86400000.0 |
Definition at line 1534 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 299 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 157 of file qv4dateobject.cpp.
References DayWithinYear(), and InLeapYear().
Referenced by MakeDay().
|
inlinestatic |
Definition at line 57 of file qv4dateobject.cpp.
References msPerDay.
Referenced by DayWithinYear(), MakeDay(), and WeekDay().
|
inlinestatic |
Definition at line 199 of file qv4dateobject.cpp.
Referenced by MakeDay().
|
inlinestatic |
Definition at line 76 of file qv4dateobject.cpp.
Referenced by DayWithinYear(), MakeDay(), and TimeFromYear().
|
inlinestatic |
Definition at line 279 of file qv4dateobject.cpp.
Referenced by LocalTime(), ToString(), and UTC().
|
inlinestatic |
Definition at line 62 of file qv4dateobject.cpp.
Referenced by InLeapYear(), and YearFromTime().
|
inlinestatic |
Definition at line 108 of file qv4dateobject.cpp.
References Day(), DayFromYear(), and YearFromTime().
Referenced by DateFromTime(), and MonthFromTime().
DEFINE_OBJECT_VTABLE | ( | DateCtor | ) |
DEFINE_OBJECT_VTABLE | ( | DateObject | ) |
|
static |
Definition at line 611 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 33 of file qv4dateobject.cpp.
References HoursPerDay, and msPerHour.
|
inlinestatic |
Definition at line 98 of file qv4dateobject.cpp.
References DaysInYear(), and YearFromTime().
Referenced by DateFromTime(), MakeDay(), and MonthFromTime().
|
inlinestatic |
Definition at line 284 of file qv4dateobject.cpp.
References DaylightSavingTA().
|
inlinestatic |
Definition at line 257 of file qv4dateobject.cpp.
References msPerDay.
Referenced by ParseString().
|
static |
Definition at line 219 of file qv4dateobject.cpp.
References DateFromTime(), Day(), DayFromMonth(), DayFromYear(), InLeapYear(), MonthFromTime(), msPerDay, and YearFromTime().
Referenced by ParseString().
|
inlinestatic |
Definition at line 188 of file qv4dateobject.cpp.
References MinutesPerHour, msPerSecond, and SecondsPerMinute.
Referenced by ParseString().
|
inlinestatic |
Definition at line 39 of file qv4dateobject.cpp.
References MinutesPerHour, and msPerMinute.
|
inlinestatic |
Definition at line 113 of file qv4dateobject.cpp.
References DayWithinYear(), and InLeapYear().
Referenced by MakeDay().
|
inlinestatic |
Definition at line 51 of file qv4dateobject.cpp.
References msPerSecond.
|
inlinestatic |
Definition at line 313 of file qv4dateobject.cpp.
References MakeDate(), MakeDay(), MakeTime(), TimeClip(), and UTC().
|
inlinestatic |
Definition at line 45 of file qv4dateobject.cpp.
References msPerSecond, and SecondsPerMinute.
|
inlinestatic |
Definition at line 304 of file qv4dateobject.cpp.
Referenced by ParseString().
|
inlinestatic |
Definition at line 84 of file qv4dateobject.cpp.
References DayFromYear(), and msPerDay.
Referenced by YearFromTime().
|
inlinestatic |
Definition at line 27 of file qv4dateobject.cpp.
References msPerDay.
|
inlinestatic |
Definition at line 586 of file qv4dateobject.cpp.
Converts the ECMA Date value t (in UTC form) to QDateTime according to spec.
Definition at line 552 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 601 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 596 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 606 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 559 of file qv4dateobject.cpp.
References DaylightSavingTA().
|
inlinestatic |
Definition at line 591 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 579 of file qv4dateobject.cpp.
|
inlinestatic |
Definition at line 293 of file qv4dateobject.cpp.
References DaylightSavingTA().
Referenced by ParseString().
|
inlinestatic |
Definition at line 181 of file qv4dateobject.cpp.
References Day().
|
inlinestatic |
Definition at line 89 of file qv4dateobject.cpp.
References DaysInYear(), msPerDay, and TimeFromYear().
Referenced by DayWithinYear(), InLeapYear(), and MakeDay().
|
static |
Definition at line 19 of file qv4dateobject.cpp.
Referenced by HourFromTime().
|
static |
Definition at line 20 of file qv4dateobject.cpp.
Referenced by MakeTime(), and MinFromTime().
|
static |
Definition at line 25 of file qv4dateobject.cpp.
Referenced by Day(), MakeDate(), MakeDay(), TimeFromYear(), TimeWithinDay(), and YearFromTime().
|
static |
Definition at line 24 of file qv4dateobject.cpp.
Referenced by HourFromTime().
|
static |
Definition at line 23 of file qv4dateobject.cpp.
Referenced by MinFromTime().
|
static |
Definition at line 22 of file qv4dateobject.cpp.
Referenced by MakeTime(), msFromTime(), and SecFromTime().
|
static |
Definition at line 21 of file qv4dateobject.cpp.
Referenced by MakeTime(), and SecFromTime().