Sha256: 84fbcef3ff46bb43c575fbee4493002e69c5187cc7a49f20a9381637b3f19416

Contents?: true

Size: 320 Bytes

Versions: 396

Compression:

Stored size: 320 Bytes

Contents

(defmodule gigasecond
  (export (from 1)))

(defun gigasecond () 1000000000)

(defun from
  ([`#(,year ,month ,day)]
   (from `#(#(,year ,month ,day) #(0 0 0))))
  ([datetime]
   (let ((seconds (calendar:datetime_to_gregorian_seconds datetime)))
     (calendar:gregorian_seconds_to_datetime (+ seconds (gigasecond))))))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.179 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.178 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.177 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.176 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.175 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.174 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.173 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.172 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.171 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.170 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.169 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.167 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.166 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.165 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.164 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.163 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.162 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.161 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.160 tracks/lfe/exercises/gigasecond/src/example.lfe