Home | History | Annotate | Download | only in src

Lines Matching defs:Time

54 int localtime_s(tm* out_tm, const time_t* time) {
55 tm* posix_local_time_struct = localtime(time);
237 // The Time class represents time on win32. A timestamp is represented as
242 class Time {
245 Time();
246 explicit Time(double jstime);
247 Time(int year, int mon, int day, int hour, int min, int sec);
252 // Set timestamp to current time.
256 // the number of milliseconds you must add to UTC to get local time, i.e.
259 // at the time.
262 // Returns the daylight savings time offset for the time in milliseconds.
270 // Constants for time conversion.
293 // Return whether or not daylight savings time is in effect at this time.
298 int64_t Diff(Time* other);
320 bool Time::tz_initialized_ = false;
321 TIME_ZONE_INFORMATION Time::tzinfo_;
322 char Time::std_tz_name_[kTzNameSize];
323 char Time::dst_tz_name_[kTzNameSize];
327 Time::Time() {
333 Time::Time(double jstime) {
338 // Initialize timestamp from date/time components.
339 Time::Time(int year, int mon, int day, int hour, int min, int sec) {
353 double Time::ToJSTime() {
360 const char* Time::GuessTimezoneNameFromBias(int bias) {
385 void Time::TzSet() {
389 // Initialize POSIX time zone data.
420 "%s Standard Time",
425 "%s Daylight Time",
435 int64_t Time::Diff(Time* other) {
440 // Set timestamp to current time.
441 void Time::SetToCurrentTime() {
454 // and then use timeGetTime to extrapolate current time from the
455 // start time. To deal with rollovers, we resync the clock
456 // any time when more than kMaxClockElapsedTime has passed or
469 // Get the current time.
477 // Check if we need to resync due to elapsed time.
487 // Finally, compute the actual time. Why is this so hard.
494 // takes into account whether daylight saving is in effect at the time.
496 // Also, adding the time-zone offset to the input must not overflow.
498 int64_t Time::LocalOffset() {
502 Time rounded_to_second(*this);
505 // Convert to local time using POSIX localtime function.
518 // Convert to local time, as struct with fields for day, hour, year, etc.
521 // Convert local time in struct to POSIX time as if it were a UTC time.
523 Time localtime(1000.0 * local_posix_time);
529 // Return whether or not daylight savings time is in effect at this time.
530 bool Time::InDST() {
534 // Determine if DST is in effect at the specified time.
544 // If the local time offset equals the timezone bias plus the daylight
553 // Return the daylight savings time offset for this time.
554 int64_t Time::DaylightSavingsOffset() {
561 char* Time::LocalTimezone() {
562 // Return the standard or DST time zone name based on whether daylight
563 // saving is in effect at the given time.
570 // Convert the current time to a 64-bit integer first, before converting it
587 // Returns the accumulated user time for thread.
592 // Get the amount of time that the thread has executed in user mode.
606 // Returns current time as the number of milliseconds since
609 Time t;
622 const char* OS::LocalTimezone(double time) {
623 return Time(time).LocalTimezone();
627 // Returns the local time offset in milliseconds east of UTC without
628 // taking daylight savings time into account.
630 // Use current time, rounded to the millisecond.
631 Time t(TimeCurrentMillis());
632 // Time::LocalOffset inlcudes any daylight savings offset, so subtract it.
638 // time.
639 double OS::DaylightSavingsOffset(double time) {
640 int64_t offset = Time(time).DaylightSavingsOffset();
673 // Only check the first time. Eventual race conditions are not a problem,
1290 // Only the shared libraries loaded at the time of the call to