Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

date
Установить/получить дату

Симлинк на: [ ToyBox ]

Тип файла: команда
  Рус  
Toybox 0.8.4-android multicall binary:  (see toybox --help) 
usage:  date [-u] [-I RES] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]


Set/get the current date/time. With no SET shows the current date.

  • -d Show DATE instead of current time (convert date format)

  • -D +FORMAT for SET or -d (instead of MMDDhhmm[[CC]YY][.ss])

  • -I RES ISO 8601 with RESolution d=date/h=hours/m=minutes/s=seconds/n=ns

  • -r Use modification time of FILE instead of current date

  • -u Use UTC instead of current timezone Supported input formats: MMDDhhmm[[CC]YY][.ss] POSIX @UNIXTIME[.FRACTION] seconds since midnight 1970-01-01 YYYY-MM-DD [hh:mm[:ss]] ISO 8601 hh:mm[:ss] 24-hour time today All input formats can be followed by fractional seconds, and/or a UTC offset such as -0800. All input formats can be preceded by TZ="id" to set the input time zone separately from the output time zone. Otherwise $TZ sets both. +FORMAT specifies display format string using strftime(3) syntax: %% literal % %n newline %t tab %S seconds (00-60) %M minute (00-59) %m month (01-12) %H hour (0-23) %I hour (01-12) %p AM/PM %y short year (00-99) %Y year %C century %a short weekday name %A weekday name %u day of week (1-7, 1=mon) %b short month name %B month name %Z timezone name %j day of year (001-366) %d day of month (01-31) %e day of month ( 1-31) %N nanosec (output only) %U Week of year (0-53 start Sunday) %W Week of year (0-53 start Monday) %V Week of year (1-53 start Monday, week < 4 days not part of this year) %F "%Y-%m-%d" %R "%H:%M" %T "%H:%M:%S" %z timezone (-0800) %D "%m/%d/%y" %r "%I:%M:%S %p" %h "%b" %:z timezone (-08:00) %x locale date %X locale time %c locale date/time %s unix epoch time
  • [ ToyBox ]     [ ManLinux ]