Returns the current time in seconds since
the epoch: midnight UTC, January 1, 1970.
Returns the current time in milliseconds since
the epoch. The result may contain fractions of a millisecond.
Example:
In this example, 1289513737015 is in milliseconds and 418 is in microseconds.
Returns the number of milliseconds since an unspecified starting time. Unlike
current-inexact-milliseconds, which is sensitive to the system clock and may therefore retreat or advance more quickly than real time if the system clock is adjusted, results from
current-inexact-monotonic-millisecondswill always advance with real time within a Racket process, but results across processes are not comparable.
Example:
Added in version 8.1.0.4 of package base.
The resulting date* reflects the time according to the local time zone if local-time? is #t, otherwise it reflects a date in UTC.
Represents a date. The second field reaches 60 only for leap seconds. The week-day field is 0 for Sunday, 1 for Monday, etc. The year-day field is 0 for January 1, 1 for January 2, etc.; the year-day field reaches 365 only in leap years.
The dst? field is #t if the date reflects a daylight-saving adjustment. The time-zone-offset field reports the number of seconds east of UTC (GMT) for the current time zone (e.g., Pacific Standard Time is -28800), including any daylight-saving adjustment (e.g., Pacific Daylight Time is -25200). When a date record is generated by seconds->date with #f as the second argument, then the dst? and time-zone-offset fields are #f and 0, respectively.
The date constructor accepts any value for dst? and converts any non-#f value to #t.
The value produced for the time-zone-offset field tends to be sensitive to the value of the TZ environment variable, especially on Unix platforms; consult the system documentation (usually under tzset) for details.
See also the racket/date library.
Extends
datewith nanoseconds and a time zone name, such as
"MDT",
"Mountain Daylight Time", or
"UTC".
When a date* record is generated by seconds->date with #f as the second argument, then the time-zone-name field is "UTC".
The date* constructor accepts a mutable string for time-zone-name and converts it to an immutable one.
Like
current-inexact-milliseconds, but coerced to a
fixnum(possibly negative). Since the result is a
fixnum, the value increases only over a limited (though reasonably long) time on a 32-bit platform.
Returns an amount of processor time in
fixnummilliseconds that has been consumed by on the underlying operating system, including both user and system time.
If scope is #f, the reported time is for all Racket threads and places.
If scope is a thread, the result is specific to the time while the thread ran, but it may include time for other places. The more a thread synchronizes with other threads, the less precisely per-thread processor time is recorded.
If scope is 'subprocesses, the result is the sum of process times for known-completed subprocesses (see Processes)—and known-completed children of the subprocesses, etc., on Unix and Mac OS—across all places.
The precision of the result is platform-specific, and since the result is a fixnum, the value increases only over a limited (though reasonably long) time on a 32-bit platform.
Changed in version 6.1.1.4 of package base: Added 'subprocesses mode.
Returns the amount of processor time in
fixnummilliseconds that has been consumed by Racket’s garbage collection so far. This time is a portion of the time reported by
(current-process-milliseconds), and is similarly limited.
Collects timing information for a procedure application.
Four values are returned: a list containing the result(s) of applying proc to the arguments in lst, the number of milliseconds of CPU time required to obtain this result, the number of “real” milliseconds required for the result, and the number of milliseconds of CPU time (included in the first result) spent on garbage collection.
The reliability of the timing numbers depends on the platform. If multiple Racket threads are running, then the reported time may include work performed by other threads.
Reports
time-apply-style timing information for the evaluation of
exprdirectly to the current output port. The result is the result of the last
body.
15.6.1 Date Utilities🔗ℹFor more date & time operations, see the Gregor: Date and Time documentation or srfi/19
Converts a date to a string. The returned string contains the time of day only if
time?. See also
date-display-format.
Parameter that determines the date string format. The initial format is 'american.
Finds the representation of a date in platform-specific seconds. If the platform cannot represent the specified date,
exn:failexception is raised.
The week-day, year-day fields of date are ignored. The dst? and time-zone-offset fields of date are also ignored; the date is assumed to be in local time by default or in UTC if local-time? is #f.
Finds the representation of a date in platform-specific seconds. The arguments correspond to the fields of the
datestructure—
in local time by default or UTC if
local-time?is
#f. If the platform cannot represent the specified date, an error is signaled, otherwise an integer is returned.
Converts a date structure (up to 2099 BCE Gregorian) into a Julian date number. The returned value is not a strict Julian number, but rather Scaliger’s version, which is off by one for easier calculations.
Converts a Julian number (Scaliger’s off-by-one version) into a string.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4