Commit Graph

9 Commits

Author SHA1 Message Date
martin 58cbc21957 systime() is not needed here - as the man page clearly points out.
Noticed by pooka.
2009-04-08 13:29:59 +00:00
martin d37420f7ca Awk has strftime() and systime(), so no need to pipe the output of date
into the script - just do it internally.
2009-04-08 13:18:56 +00:00
apb e2832b6345 Back out previous (which worked but made the code harder to understand),
and implement a different method of avoiding a "-0" result.
2007-08-25 07:07:39 +00:00
martin fe7b5be8b0 Cosmetics: print 0 instead of -0.
From Zafer Aydogan in PR bin/36831.
2007-08-24 17:02:32 +00:00
sketch de3bf5da0e Tidy output so it matches other rc scripts. 2006-10-01 15:17:51 +00:00
blymn f79b447e34 Fix rtc offset calculation for timezones that are not integral hours. 2006-04-26 09:57:01 +00:00
mycroft 7d2e1537c5 Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
2004-08-13 18:08:03 +00:00
schmonz c8dd377ead Add RCS Id. 2004-04-25 16:52:19 +00:00
martin 448491ee86 Add a new /etc/rc.conf option: rtclocaltime=YES adapts the RTC offset
at boot automatically, so a machine dual booting another OS that uses
the RTC at localtime and NetBSD agree on the current time even if daylight
saving started/ended (without recompiling a kernel twice per year).
Awk code by Matt Thomas.
2003-12-27 00:23:22 +00:00