Feature #1328
Expose timestamp -> UNIX conversion to user
Status: | Resolved | Start date: | 01/11/2013 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Common Lisp Tools | |||
Target version: | rsb-0.9 |
Description
When using the programmable
formatting style, the user should be able to write
(timestamp->unix/nsec (timestamp event :foobar))
instead of
(let ((ts (timestamp event :foobar)))
(+ (* (expt 10 9) (local-time:timestamp-to-unix ts))
(local-time:nsec-of ts)))
Associated revisions
Added convenience function in formatting/event-style-programmable.lisp
fixes #1328
- formatting/event-style-programmable.lisp (header): updated copyright
(style-programmable-default-bindings): use new functions
`timestamp->unix' and `timestamp->unix/nsec' for corresponding
timestamp bindings
(compile-code style-programmable t list): wrap code in local
functions `timestamp->unix' and `timestamp->unix/nsec' with
implement the respective conversions
Backport: Added convenience function in formatting/event-style-programmable.lisp
refs #1328
- formatting/event-style-programmable.lisp (header): updated copyright
(style-programmable-default-bindings): use new functions
`timestamp->unix' and `timestamp->unix/nsec' for corresponding
timestamp bindings
(compile-code style-programmable t list): wrap code in local
functions `timestamp->unix' and `timestamp->unix/nsec' with
implement the respective conversions
History
#1 Updated by J. Moringen over 11 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-tools-cl|commit:83c5bcd545422455f7838fbc9080bc704e73f33f.