55 explicit Time (int64 millisecondsSinceEpoch) noexcept;
76 bool useLocalTime =
true) noexcept;
81 Time& operator= (const
Time&) = default;
91 static
Time JUCE_CALLTYPE getCurrentTime() noexcept;
98 int64 toMilliseconds() const noexcept {
return millisSinceEpoch; }
103 int getYear() const noexcept;
109 int getMonth() const noexcept;
116 String getMonthName (
bool threeLetterVersion) const;
121 int getDayOfMonth() const noexcept;
126 int getDayOfWeek() const noexcept;
131 int getDayOfYear() const noexcept;
137 String getWeekdayName (
bool threeLetterVersion) const;
143 int getHours() const noexcept;
149 bool isAfternoon() const noexcept;
156 int getHoursInAmPmFormat() const noexcept;
159 int getMinutes() const noexcept;
162 int getSeconds() const noexcept;
171 int getMilliseconds() const noexcept;
174 bool isDaylightSavingTime() const noexcept;
178 String getTimeZone() const;
181 int getUTCOffsetSeconds() const noexcept;
187 String getUTCOffsetString (
bool includeDividerCharacters) const;
202 String toString (
bool includeDate,
204 bool includeSeconds = true,
205 bool use24HourClock = false) const;
247 String toISO8601 (
bool includeDividerCharacters) const;
264 bool setSystemTimeToThisTime() const;
273 static
String getWeekdayName (
int dayNumber,
bool threeLetterVersion);
281 static
String getMonthName (
int monthNumber,
bool threeLetterVersion);
293 static int64 currentTimeMillis() noexcept;
307 static uint32 getMillisecondCounter() noexcept;
316 static
double getMillisecondCounterHiRes() noexcept;
322 static
void waitForMillisecondCounter (uint32 targetTime) noexcept;
333 static uint32 getApproximateMillisecondCounter() noexcept;
346 static int64 getHighResolutionTicks() noexcept;
353 static int64 getHighResolutionTicksPerSecond() noexcept;
360 static
double highResolutionTicksToSeconds (int64 ticks) noexcept;
367 static int64 secondsToHighResolutionTicks (
double seconds) noexcept;
370 static
Time getCompilationDate();
374 int64 millisSinceEpoch = 0;
389 JUCE_API
bool operator== (
Time time1,
Time time2) noexcept;
391 JUCE_API
bool operator!= (
Time time1,
Time time2) noexcept;
393 JUCE_API
bool operator< (
Time time1,
Time time2) noexcept;
395 JUCE_API
bool operator<= (
Time time1,
Time time2) noexcept;
397 JUCE_API
bool operator> (
Time time1,
Time time2) noexcept;
399 JUCE_API
bool operator>= (
Time time1,
Time time2) noexcept;