Project

General

Profile

Feature #8893

Want date -r

Added by Robert Mustacchi about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2017-12-05
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

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.


Related issues

Has duplicate illumos gate - Feature #5642: want BSD-like date -r optionClosed2015-02-19

Actions

History

#1

Updated by Electric Monk almost 2 years ago

  • Status changed from New to Closed

git commit 2f4149ea09454b3def6fe8245992f7e26571a1e8

commit  2f4149ea09454b3def6fe8245992f7e26571a1e8
Author: Robert Mustacchi <rm@joyent.com>
Date:   2018-02-18T21:41:23.000Z

    8893 Want date -r
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Reviewed by: Cody Mello <melloc@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

#2

Updated by Robert Mustacchi 4 months ago

  • Has duplicate Feature #5642: want BSD-like date -r option added

Also available in: Atom PDF