Skip to content

Instantly share code, notes, and snippets.

@muojp
Created August 30, 2016 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muojp/994572be118994b49abf0d8688f17a6d to your computer and use it in GitHub Desktop.
Save muojp/994572be118994b49abf0d8688f17a6d to your computer and use it in GitHub Desktop.
Alpineは居ます
bash-4.3# cat /etc/alpine-release
3.4.0
bash-4.3# date -h
date: unrecognized option: h
BusyBox v1.24.2 (2016-08-12 14:38:34 GMT) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
[-s,--set] TIME Set time to TIME
-u,--utc Work in UTC (don't convert to local time)
-R,--rfc-2822 Output RFC-2822 compliant date string
-I[SPEC] Output ISO-8601 compliant date string
SPEC='date' (default) for date only,
'hours', 'minutes', or 'seconds' for date and
time to the indicated precision
-r,--reference FILE Display last modification time of FILE
-d,--date TIME Display TIME, not 'now'
-D FMT Use FMT for -d TIME conversion
Recognized TIME formats:
hh:mm[:ss]
[YYYY.]MM.DD-hh:mm[:ss]
YYYY-MM-DD hh:mm[:ss]
[[[[[YY]YY]MM]DD]hh]mm[.ss]
'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead
bash-4.3# date +%s
1472545785
bash-4.3# date +%s%N
1472545788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment