srfi-19-objects.scm 576 B

1234567891011121314
  1. (import (srfi srfi-19))
  2. (simple-format (current-output-port) "date: ~s\n" (current-date))
  3. (simple-format (current-output-port) "date: ~s\n" (make-date 0 0 0 10 13 3 2021 0))
  4. (simple-format (current-output-port) "time: ~s\n" (current-time time-utc))
  5. (let* ([seconds 1]
  6. [minutes (* 60 seconds)]
  7. [hours (* 60 minutes)]
  8. [now (current-time time-utc)])
  9. (simple-format (current-output-port)
  10. "duration: ~s\n"
  11. (time-difference (add-duration now (make-time time-duration 0 (* 1 hours)))
  12. now)))