dlowe-net / local-time

Time manipulation library for Common Lisp
Other
102 stars 43 forks source link

SBCL: incorrect variable names #84

Closed phoe closed 1 month ago

phoe commented 5 years ago

https://github.com/dlowe-net/local-time/blob/dc54f61415c76ee755a6f69d4154a3a282f2789f/src/local-time.lisp#L1068

Via http://www.sbcl.org/manual/:

Function: get-time-of-day [sb-ext]
    Return the number of seconds and microseconds since the beginning of the unix epoch (January 1st 1970.) 

This function, according to the documentation, returns microseconds and not nanoseconds then - the variable name nsec is incorrect.

jonatack commented 5 years ago

True, microseconds are abbreviated to usec / μsec / μs.

CL-USER> (sb-ext:get-time-of-day)
1561816323
461713
jonatack commented 5 years ago

Might need verifying elsewhere in the codebase and docs.

dlowe-net commented 1 month ago

You got it!