Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Classes | |
class | GCedTreeNode |
class | GCedTreeNodeMixin |
Enumerations | |
enum class | ConversionStatus { kSuccess = 0 , kBadFormat , kBadDate } |
Functions | |
double | FX_GetDateTime () |
int | FX_GetYearFromTime (double dt) |
int | FX_GetMonthFromTime (double dt) |
int | FX_GetDayFromTime (double dt) |
int | FX_GetHourFromTime (double dt) |
int | FX_GetMinFromTime (double dt) |
int | FX_GetSecFromTime (double dt) |
bool | FX_IsValidMonth (int m) |
bool | FX_IsValidDay (int d) |
bool | FX_IsValid24Hour (int h) |
bool | FX_IsValidMinute (int m) |
bool | FX_IsValidSecond (int s) |
double | FX_LocalTime (double d) |
double | FX_MakeDay (int nYear, int nMonth, int nDay) |
double | FX_MakeTime (int nHour, int nMin, int nSec, int nMs) |
double | FX_MakeDate (double day, double time) |
int | FX_ParseStringInteger (const WideString &str, size_t nStart, size_t *pSkip, size_t nMaxStep) |
ConversionStatus | FX_ParseDateUsingFormat (const WideString &value, const WideString &format, double *result) |
Variables | |
const wchar_t *const | kMonths [12] |
const wchar_t *const | kFullMonths [12] |
static constexpr size_t | KMonthAbbreviationLength = 3 |
static constexpr size_t | kLongestFullMonthLength = 9 |
|
strong |
Enumerator | |
---|---|
kSuccess | |
kBadFormat | |
kBadDate |
Definition at line 16 of file fx_date_helpers.h.
double fxjs::FX_GetDateTime | ( | ) |
Definition at line 183 of file fx_date_helpers.cpp.
References FXSYS_localtime(), FXSYS_time(), and IsPDFSandboxPolicyEnabled().
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDate().
int fxjs::FX_GetDayFromTime | ( | double | dt | ) |
Definition at line 202 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().
int fxjs::FX_GetHourFromTime | ( | double | dt | ) |
Definition at line 206 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().
int fxjs::FX_GetMinFromTime | ( | double | dt | ) |
Definition at line 210 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().
int fxjs::FX_GetMonthFromTime | ( | double | dt | ) |
Definition at line 198 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), CJS_PublicMethods::PrintDateUsingFormat(), and TEST().
int fxjs::FX_GetSecFromTime | ( | double | dt | ) |
Definition at line 214 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().
int fxjs::FX_GetYearFromTime | ( | double | dt | ) |
Definition at line 194 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), CJS_PublicMethods::PrintDateUsingFormat(), and TEST().
bool fxjs::FX_IsValid24Hour | ( | int | h | ) |
Definition at line 228 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat().
bool fxjs::FX_IsValidDay | ( | int | d | ) |
Definition at line 223 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDate().
bool fxjs::FX_IsValidMinute | ( | int | m | ) |
Definition at line 232 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat().
bool fxjs::FX_IsValidMonth | ( | int | m | ) |
Definition at line 218 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().
bool fxjs::FX_IsValidSecond | ( | int | s | ) |
Definition at line 236 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat().
double fxjs::FX_LocalTime | ( | double | d | ) |
Definition at line 240 of file fx_date_helpers.cpp.
Referenced by JS_DateParse().
double fxjs::FX_MakeDate | ( | double | day, |
double | time ) |
Definition at line 265 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().
double fxjs::FX_MakeDay | ( | int | nYear, |
int | nMonth, | ||
int | nDay ) |
Definition at line 244 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().
double fxjs::FX_MakeTime | ( | int | nHour, |
int | nMin, | ||
int | nSec, | ||
int | nMs ) |
Definition at line 257 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().
ConversionStatus fxjs::FX_ParseDateUsingFormat | ( | const WideString & | value, |
const WideString & | format, | ||
double * | result ) |
Definition at line 296 of file fx_date_helpers.cpp.
References fxcrt::WideString::CompareNoCase(), FX_GetDateTime(), FX_GetDayFromTime(), FX_GetHourFromTime(), FX_GetMinFromTime(), FX_GetMonthFromTime(), FX_GetSecFromTime(), FX_GetYearFromTime(), FX_IsValid24Hour(), FX_IsValidDay(), FX_IsValidMinute(), FX_IsValidMonth(), FX_IsValidSecond(), FX_MakeDate(), FX_MakeDay(), FX_MakeTime(), fxcrt::WideString::IsEmpty(), kBadDate, kBadFormat, kFullMonths, kMonths, kSuccess, and fxcrt::WideString::MakeLower().
Referenced by CJS_PublicMethods::ParseDateUsingFormat(), TEST_F(), and TEST_F().
int fxjs::FX_ParseStringInteger | ( | const WideString & | str, |
size_t | nStart, | ||
size_t * | pSkip, | ||
size_t | nMaxStep ) |
Definition at line 272 of file fx_date_helpers.cpp.
References FXSYS_DecimalCharToInt(), and FXSYS_IsDecimalDigit().
const wchar_t *const fxjs::kFullMonths |
Definition at line 175 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::PrintDateUsingFormat().
|
staticconstexpr |
Definition at line 181 of file fx_date_helpers.cpp.
|
staticconstexpr |
Definition at line 180 of file fx_date_helpers.cpp.
const wchar_t *const fxjs::kMonths |
Definition at line 171 of file fx_date_helpers.cpp.
Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDateAsGMT(), and CJS_PublicMethods::PrintDateUsingFormat().