Scheme 48 Manual | Contents | In Chapter: Access to POSIX
Previous: Time | Next: Time

## Time

These procedures are in structures `posix-time` and `posix`.

- `(make-time integer) -> time`
- `(current-time) -> time`
- `(time? x) -> boolean`
- `(time-seconds time) -> integer`

A `time` record contains an integer that represents time as the number of second since the Unix epoch (00:00:00 GMT, January 1, 1970). `Make-time` and `current-time` return `time`s, with `make-time`'s using its argument while `current-time`'s has the current time. `Time?` is a predicate that recognizes `time`s and `time-seconds` returns the number of seconds `time` represents.

- `(time=? time time) -> boolean`
- `(time<? time time) -> boolean`
- `(time<=? time time) -> boolean`
- `(time>? time time) -> boolean`
- `(time>=? time time) -> boolean`

These perform various comparison operations on the `time`s.

- `(time->string time) -> string`

`Time->string` returns a string representation of `time` in the following form.

>     "Wed Jun 30 21:49:08 1993
>     "

Previous: Time | Next: Time