-
Notifications
You must be signed in to change notification settings - Fork 86
string seconds
Chris Petersen edited this page Oct 16, 2014
·
1 revision
string->seconds converts a string with the given format into seconds.
Parameter | Description |
---|---|
str | String to be converted |
fmt | Time format string. Accepting printf % notation and SRFI-19 ~ notation |
tz0 | Optional: Specification of the timezone |
Example 1: Convert some strings to Unix epoch values
> (string->seconds "1990-01-01 0:00:00" "%Y-%m-%d %H:%M:%S")
631177225.
> (string->seconds "2001-09-09 01:46:40" "%Y-%m-%d %H:%M:%S" 0) ;; 1000000000
1000000032.
> (string->seconds "2009-02-13 23:31:30" "%Y-%m-%d %H:%M:%S" 0) ;; 1234567890
1234567924.
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip