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 over 1 year ago
- Status changed from New to Closed
commit 2f4149ea09454b3def6fe8245992f7e26571a1e8 Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2018-02-18T21:41:23.000Z 8893 Want date -r Reviewed by: Yuri Pankov <email@example.com> Reviewed by: Cody Mello <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>