Lines Matching defs:timeMs
38 void DateUtils::TransferTimeToDate(int64_t timeMs, std::array<int64_t, DATE_LENGTH> *date)
40 (*date)[HOUR] = Mod(timeMs, MS_PER_DAY); // ms from hour, minutes, second, ms
41 (*date)[DAYS] = (timeMs - (*date)[HOUR]) / MS_PER_DAY; // days from year, month, day
193 double JSDate::LocalTime(double timeMs) const
195 return timeMs + GetLocalOffsetFromOS(timeMs, true);
199 double JSDate::UTCTime(double timeMs) const
201 return timeMs - GetLocalOffsetFromOS(timeMs, false);
247 int64_t JSDate::GetLocalOffsetInMin(const JSThread *thread, int64_t timeMs, bool isLocal)
254 localOffset = static_cast<double>(GetLocalOffsetFromOS(timeMs, isLocal));
657 double timeMs = this->GetTimeValue().GetDouble();
658 if (std::isnan(timeMs)) {
661 GetDateValues(timeMs, date, isLocal);
686 CString JSDate::ToDateString(double timeMs)
688 if (std::isnan(timeMs)) {
692 GetDateValues(timeMs, &fields, true);
695 localMin = GetLocalOffsetFromOS(timeMs, true);
863 void JSDate::GetDateValues(double timeMs, std::array<int64_t, DATE_LENGTH> *date, bool isLocal)
866 int64_t timeMsInt = static_cast<int64_t>(timeMs);
876 double JSDate::GetDateValue(double timeMs, uint8_t code, bool isLocal) const
878 if (std::isnan(timeMs)) {
882 GetDateValues(timeMs, &date, isLocal);
890 double timeMs = this->GetTimeValue().GetDouble();
905 if (std::isnan(timeMs) && firstValue == 0) {
906 timeMs = 0.0;
907 GetDateValues(timeMs, &date, false);
909 GetDateValues(timeMs, &date, isLocal);