Hello all!
I have a problem, I've date in this form: @2010-12-29T17:05:43.000000+01:00
How can I add, for example, 10 days?
Thanks, bye
Date operation
-
- Posts: 117
- Joined: Tue Aug 10, 2010 11:24 pm
- Location: Calgary, Alberta
- Contact:
Re: Date operation
Need an online wiki database? My Lisp startup http://www.formlis.com combines a wiki with forms and reports.
Re: Date operation
Thanks for reply.
Yes I use local-time package, this fn:
The fn (timestamp...) don't work
.
Thanks very much,
bye
UPDATE:I solve so:
Thanks very much
Yes I use local-time package, this fn:
Code: Select all
(local-time::universal-to-timestamp (get-universal-time))

Thanks very much,
bye
UPDATE:I solve so:
Code: Select all
(local-time::timestamp+ (local-time::universal-to-timestamp (get-universal-time)) 10 :day)
Thanks very much

Re: Date operation
Why not just decode-universal-time and encode-universal-time?
-
- Posts: 117
- Joined: Tue Aug 10, 2010 11:24 pm
- Location: Calgary, Alberta
- Contact:
Re: Date operation
In this case he is using a library of time & date routines that store time in a specialized structure (basically just two unsigned 32's).
Read Eric Naggum's The Long, Painful History of Time for the 'why' of it.
Read Eric Naggum's The Long, Painful History of Time for the 'why' of it.
Need an online wiki database? My Lisp startup http://www.formlis.com combines a wiki with forms and reports.