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.159 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.158 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.157 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.156 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.155 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.154 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.153 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.152 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.151 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.150 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.149 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.148 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.147 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.146 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.145 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.144 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.143 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.142 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.141 tracks/lfe/exercises/gigasecond/src/example.lfe
trackler-2.2.1.140 tracks/lfe/exercises/gigasecond/src/example.lfe