Want date -r
A common request we've had is the ability to specify a time_t through the date(1) command for it process. To implement this, I've opted to follow the BSD command lineage and provide a -r option which allows one to specify that time. One wrinkle is that GNU date uses -r to act as a reference to a file. Here, I've also mimicked recent BSD behavior and if the time cannot be parsed by strtol() then we go ahead and treat the argument as a file that we're referencing the time from instead.
Updated by Electric Monk almost 2 years ago
- Status changed from New to Closed
commit 2f4149ea09454b3def6fe8245992f7e26571a1e8 Author: Robert Mustacchi <email@example.com> Date: 2018-02-18T21:41:23.000Z 8893 Want date -r Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Cody Mello <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>