Skip to content

Commit 3b9c6bf

Browse files
committed
LN_CORE: Add string->seconds back, which was missing in d8cab37
1 parent 6d9612a commit 3b9c6bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/ln_core/time.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,10 @@ end-of-c-declare
15141514
)
15151515
utc2))
15161516

1517+
;; can't do optimization here as tz0 is needed later
1518+
(define (string->seconds str fmt . tz0)
1519+
(apply string->seconds~ (append (list str (ln:tildify fmt)) tz0)))
1520+
15171521
(define (seconds->string~ sec0 fmt tz)
15181522
(let* ((sec (+ sec0 (* tz 3600.)))
15191523
(s (inexact->exact (floor sec)))

0 commit comments

Comments
 (0)