local-time is a development library for manipulating date and time information in a semi-standard manner.
local-time
You can see the code:
https://gist.github.com/juan-reynoso/679e1a1305aef2f17f3c864793561ba0
In order to run the function get-timestamp-data you need to load the systems:
(ql:quickload "split-sequence")
(ql:quickload "local-time")
And using local-time package
(in-package :local-time)

LOCAL-TIME> (now)
@2021-09-27T10:47:47.473909-05:00
LOCAL-TIME> (get-timestamp-data (now))
(1 27 9 2021 30)
LOCAL-TIME>
#lisp