59 explicit Time (int64 millisecondsSinceEpoch) noexcept;
80 bool useLocalTime =
true) noexcept;
85 Time& operator= (
const Time&) =
default;
95 static Time JUCE_CALLTYPE getCurrentTime() noexcept;
107 int getYear()
const noexcept;
113 int getMonth()
const noexcept;
120 String getMonthName (
bool threeLetterVersion)
const;
125 int getDayOfMonth()
const noexcept;
130 int getDayOfWeek()
const noexcept;
135 int getDayOfYear()
const noexcept;
141 String getWeekdayName (
bool threeLetterVersion)
const;
147 int getHours()
const noexcept;
153 bool isAfternoon()
const noexcept;
160 int getHoursInAmPmFormat()
const noexcept;
163 int getMinutes()
const noexcept;
166 int getSeconds()
const noexcept;
175 int getMilliseconds()
const noexcept;
178 bool isDaylightSavingTime()
const noexcept;
182 String getTimeZone()
const;
185 int getUTCOffsetSeconds()
const noexcept;
191 String getUTCOffsetString (
bool includeDividerCharacters)
const;
206 String toString (
bool includeDate,
208 bool includeSeconds =
true,
209 bool use24HourClock =
false)
const;
251 String toISO8601 (
bool includeDividerCharacters)
const;
268 bool setSystemTimeToThisTime()
const;
277 static String getWeekdayName (
int dayNumber,
bool threeLetterVersion);
285 static String getMonthName (
int monthNumber,
bool threeLetterVersion);
297 static int64 currentTimeMillis() noexcept;
311 static uint32 getMillisecondCounter() noexcept;
320 static double getMillisecondCounterHiRes() noexcept;
326 static void waitForMillisecondCounter (uint32 targetTime) noexcept;
337 static uint32 getApproximateMillisecondCounter() noexcept;
350 static int64 getHighResolutionTicks() noexcept;
357 static int64 getHighResolutionTicksPerSecond() noexcept;
364 static double highResolutionTicksToSeconds (int64 ticks) noexcept;
371 static int64 secondsToHighResolutionTicks (
double seconds) noexcept;
374 static Time getCompilationDate();
378 int64 millisSinceEpoch = 0;
#define JUCE_API
This macro is added to all JUCE public class declarations.
A simple class for holding temporary references to a string literal or String.
int64 toMilliseconds() const noexcept
Returns the time as a number of milliseconds.
A relative measure of time.
Holds an absolute date and time.