BusyBox Date Command Set Time with UNIX Timestamp

8,354

Try

date @`date +%s`

I don't think it's got anything to do with bash.

Busybox's date command is a lightweight version of the more classic GNU/FSF date

Share:
8,354

Related videos on Youtube

PhilBot
Author by

PhilBot

Updated on September 18, 2022

Comments

  • PhilBot
    PhilBot almost 2 years

    In bash, the following works for setting the date from a UNIX timestamp ( seconds from the epoch ):

    date +%s -s @`date +%s`
    

    In Busybox, this does not work. How can I do the same for the date command with Busybox? Thanks.