summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/getdate.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor code rework.kientzle2010-02-071-21/+8
|
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-2/+0
| | | | Tested with: make universe
* Merge r687-689,691,693-701,720 from libarchive.googlecode.com:kientzle2009-03-081-0/+1050
Translate getdate.y into C for portability. Make the get_date() function easier to test as well: * Have it accept a time_t "now" to use as a reference so that test code can verify relative time specifications against known starting points. * Set up default date after parsing the string so that we can use the specified timezone (if any) instead of the local default. Otherwise, local DST makes it almost impossible to reliably test time specifications such as "sunday UTC"
OpenPOWER on IntegriCloud