Commit Graph

31 Commits

Author SHA1 Message Date
bjh21 a17ce6ad1e When setting the date, ask mktime() to work out whether we're in DST or not.
Seems to fix PR bin/8750.
2000-10-08 10:30:44 +00:00
simonb 51ee9dc68d Don't declare 'extern opt*' getopt variables. 2000-04-14 05:52:56 +00:00
kleink c5d7701cd4 Make this slightly more portable by using putenv(). 2000-01-04 14:15:09 +00:00
christos ab0eebb3f6 cast to unsigned char for is*() 1998-11-04 12:51:00 +00:00
mycroft d32f290dae GMT -> UTC 1998-10-24 03:45:51 +00:00
wsanchez 1b845eea1b For the case where mktime() fails exit with "illegal time" error rather than
"illegal time format", which is misleading.
1998-10-14 00:49:44 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft dbfa4f81b0 __AUDIT__ cleanup. 1998-07-27 16:43:25 +00:00
kleink 314d411687 Need <time.h> for time(), strftime(), localtime() and mktime() prototypes. 1998-04-01 13:54:44 +00:00
mycroft 65139bd9be Slight code rearrangement. 1998-01-21 00:07:44 +00:00
mycroft 76b3c10513 Don't validate the mmddhhmm.ss values here. mktime(3) does it. 1998-01-20 22:06:02 +00:00
mycroft c7273dc993 Make the documented parsing order for the date match reality. 1998-01-20 21:47:43 +00:00
mycroft f9a6471ec7 Allow a century to be specified.
Cut and paste some text from touch(1) about date parsing.
1998-01-20 21:16:38 +00:00
mycroft eeec814a41 Use TM_YEAR_BASE to adjust tm_year, not 1900. 1998-01-20 20:53:32 +00:00
cgd bad15fd37f lint 1997-11-05 21:17:14 +00:00
thorpej a71a8b8761 __RCSID()/__COPYRIGHT()/prototype police. 1997-07-20 05:17:33 +00:00
cgd 4274523efe pull in util.h rather than prototypeing logtwmp() locally. 1997-03-26 20:28:11 +00:00
perry 61974fdce1 remove obsolete -d and -t options -- kernel timezone handling is long gone 1997-01-24 18:17:17 +00:00
tls 3811362c9a kill use of register 1997-01-09 16:31:05 +00:00
jtc 5fc5415e25 Sync with 4.4lite2 1995-09-07 06:12:53 +00:00
cgd d7290b7687 clean up RCS Ids slightly, etc. 1995-04-23 10:07:18 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc 18356811e6 Minor tweaks. 1993-12-31 19:25:23 +00:00
jtc 7bab32a746 1003.2: 4.15.4: The output always shall be terminated by a newline character. 1993-08-16 23:08:51 +00:00
mycroft a579b792ce Add RCS identifiers. 1993-08-01 18:59:54 +00:00
deraadt 6012a4f69e date comamnd ignored seconds value. patch from <mhw@cs.brown.edu> 1993-06-21 05:18:44 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00