dlowe-net / local-time

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

Add local-time:encode-universal-time? #120

Closed kilianmh closed 6 months ago

kilianmh commented 7 months ago

The function cl:encode-universal-time gives inconsistent results across different implementations due to different values for the time-zone. Do you think we'd add a function local-time:encode-universal-time to shadow the original while keeping the same function signature but time-zone set by default to 0? I think this might be useful in other projects.

dlowe-net commented 6 months ago

Sorry, I don't think this is within the scope of the library.

kilianmh commented 6 months ago

I'm writing about this function:

(defun encode-universal-time (second minute hour date month year &optional (time-zone 0))
  (cl:encode-universal-time second minute hour date month year time-zone))

The only difference is that time-zone defaults to 0.

Are you sure this is out of scope?