summaryrefslogtreecommitdiff
path: root/usr.bin/touch
AgeCommit message (Collapse)Author
2016-12-24Update the description of the -t option to bring it in sync with IEEE 1003.1 ↵abhinav
-2008. The .SS field of the datetime argument of -t option can have range from 0 to 60 as per the 1003.1 2008 standard. POSIX has removed all mentions of double leap seconds, therefore the allowed range of seconds is now [0,60]. Also, add an ENVIRONMENT section, as the interpretation of the datetime argument in -t option depends on the TZ environment variable. Add an xref for parsedate(3) in SEE ALSO. ok wiz@
2015-03-02Don't truncate at microseconds while preserving timestamps.enami
One of motivation of this change is to make the behavior of test(1) -nt/ot with preserved copy (like cp -p) closer to the NetBSD 6. Of course whether full timestamps are kept or not depends also on underlying file system. The ifdef added in mv(1) since existing ifdefs was our local change to compile it on solaris (though I couldn't test it): http://mail-index.netbsd.org/tech-userlevel/2014/11/28/msg008831.html
2012-10-24Note that -d, -r, and -t are mutually exclusive and only the last onepgoyette
is used. While here, alphabetize the other list of r/d/t flags.
2012-10-23Add --date and --reference to SYNOPSIS.wiz
2012-10-22Note that -d flag also precludes historical usage.pgoyette
2012-10-22Recognize --date and --reference like gnu.christos
2012-07-27Mention option arguments in DESCRIPTION.wiz
2012-07-25add an option to parse human dates.christos
2012-06-20- Use more consistent wording;wiz
- create separate section, and use `.Ex' macro, for exit status information. From patch by Bug Hunting. Bump date.
2011-09-06ANSIfy, static + __deadjoerg
2011-02-22Sort sections.wiz
2011-02-22-f no longer has effect. from Snader_LB on irc.pooka
2009-04-28remove read-write code because it's dangerous.yamt
there's no point to try this hard anyway.
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2006-03-18Coverty 1212: Avoid close(-1).dsl
2005-11-26Fix more FALLTHOUGH -> FALLTHROUGH typo.tsutsui
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
1999-11-05Nit: In the compatibility case, set the seconds to 0.mycroft
1998-08-25Add { and } to shut up egcs. Reformat the more questionable code.ross
1998-01-21Fix the old-style date parsing code as well.mycroft
1998-01-21Minor code rearrangement, and allow less of the time stamp to be specified.mycroft
1998-01-20Fix a typo.mycroft
1998-01-20Pull in tzfile.h.mycroft
1998-01-20Use TM_YEAR_BASE to adjust tm_year, not 1900.mycroft
1997-10-22Revert to previous version; new libc function "versioning" worksfvdl
with the original.
1997-10-21Make this work with the new versioned stat(2) functions.thorpej
1997-10-20WARNSify, fix .Nm usage, getopt returns -1 not EOFlukem
1997-10-19Purely cosmetic change.mycroft
1997-10-17Fix typo; `symbolic link' -> `a symbolic link'.enami
1997-10-11Add h option to usage.enami
1997-10-06Document new flag -h.enami
1997-10-06Introduce new flag, -h, to manupilate access/modification time ofenami
symbolic link.
1997-09-09Changed order of STANDARDS and HISTORY subheads to conform withjtc
specification in mdoc(7).
1995-08-31Sync with 44lite2jtc
1995-08-30Correct description of default century (from Peter Seebach; PR#1423).pk
1995-06-07can't assume that timeval.ts_sec is same type as time_t. grr.cgd
1994-12-07Merged with 4.4lite.jtc
Changed to conform to NetBSD's new RCS Id convention.
1994-01-11Fix spelling errors.jtc
1993-12-31Localization changes + minor bug fix.jtc
1993-09-16fix for "touch -t CCYYMMDDhhmm[.SS]". the CC part didn't work. fromcgd
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-08-26Fix formatting bug.jtc
1993-08-07Add 4.4-specific code in `#ifdef notyet's.mycroft
1993-08-01Add RCS identifiers.mycroft
1993-08-01Add RCS indentifiers.mycroft
1993-07-30Add RCS identifiers.mycroft
1993-06-02fix bug in touch's non-posix compatibility support. bug report alsoglass
forwarded to CSRG as this is their current 'touch'. bug reported by Kim Andersen <kim@dde.dk>
1993-05-01s/__dead/volatile/mycroft
1993-04-30new touchglass