(localtime)
Returns the local date and time as a string in RFC3339 format.
> (localtime)
"2021-06-30 15:03:45"
>
On Linux (with available framebuffer access) this implements a very simple digital clock:
(define (loop)
(define b (bitmap-scale-absolute
(bitmap-invert
(string->bitmap (localtime))) (/ (framebuffer-width fb) 2) 0))
(framebuffer-setcursor! fb
(/ (framebuffer-width fb) 4) (/ (framebuffer-height fb) 2))
(framebuffer-display! fb b)
(usleep 100000)
(loop))
(define fb (framebuffer-create))
(loop)