Hi all,
Sorry but I can't get current month
.
How can I do it?
Thanks,
bye
Sorry but I can't get current month
How can I do it?
Thanks,
bye
Discuss and learn Lisp programming of all dialects
This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.
8 posts · 1419 views
Stiv wrote:Hi all,I'm thinking you're going to want at least two of these functions:
Sorry but I can't get current month.
How can I do it?
Thanks,
bye
multiple-value-bind
decode-universal-time
get-universal-time
Look them up if you don't know what they are.(multiple-value-bind (s min b gg m a b2 b3 b4)
(decode-universal-time (get-universal-time))
(list m))
but it generates many style-warning, how can I improve it? (multiple-value-bind (s min b gg m a b2 b3 b4)
(decode-universal-time (get-universal-time))
(declare (ignore s min b gg a b2 b3 b4))
(list m))(fifth (multiple-value-list (decode-universal-time (get-universal-time))))(nth-value 4 (decode-universal-time (get-universal-time)))