diff options
author | Daniel Baker <dbaker@FreeBSD.org> | 2000-05-19 18:02:25 +0000 |
---|---|---|
committer | Daniel Baker <dbaker@FreeBSD.org> | 2000-05-19 18:02:25 +0000 |
commit | d5dc63cc0ab03cbeab78b6c6ffd763a6a5292117 (patch) | |
tree | 969ccfddf11f01eb0dcdf1165f5207f09332b694 /bin/date | |
parent | 3ec91ea962ea924cfe3437d83d5561d7dca4c2f4 (diff) | |
download | src-d5dc63cc0ab03cbeab78b6c6ffd763a6a5292117.tar.gz src-d5dc63cc0ab03cbeab78b6c6ffd763a6a5292117.zip |
Correct confusion and differentiate appropriately between GMT and UTC when
date is launched with the "u" argument. It now operates in the documented
manner.
Fix typo in date man page.
Submitted by: David McNett <nugget@slacker.com>
Notes
Notes:
svn path=/head/; revision=60718
Diffstat (limited to 'bin/date')
-rw-r--r-- | bin/date/date.1 | 2 | ||||
-rw-r--r-- | bin/date/date.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1 index 650a87171652..82551ada1d38 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -130,7 +130,7 @@ by future calls to .Xr gettimeofday 2 . .It Fl u Display or set the date in -.Tn UCT +.Tn UTC .Pq universal time. .It Fl v diff --git a/bin/date/date.c b/bin/date/date.c index fcd90697b3e5..0ee69b775cb6 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -118,15 +118,15 @@ main(argc, argv) rflag = 1; tval = atol(optarg); break; - case 't': /* minutes west of GMT */ + case 't': /* minutes west of UTC */ /* error check; don't allow "PST" */ tz.tz_minuteswest = strtol(optarg, &endptr, 10); if (endptr == optarg || *endptr != '\0') usage(); set_timezone = 1; break; - case 'u': /* do everything in GMT */ - (void)setenv("TZ", "GMT0", 1); + case 'u': /* do everything in UTC */ + (void)setenv("TZ", "UTC0", 1); break; case 'v': v = vary_append(v, optarg); |