aboutsummaryrefslogtreecommitdiffstats
path: root/awklib
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-06-12 21:51:41 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-06-12 21:51:41 +0300
commitb4a2d75b7d9fd23069a55dc91a42f7fddd0c7570 (patch)
treeb9f29b0ffb9930cf604d4e10c8c53af16062fafa /awklib
parent21a01e3ad4e2e77dccf73e8fd069370749880757 (diff)
parent5472c2cc2889aab121c32ed4ca6bd831ae520d89 (diff)
downloadegawk-b4a2d75b7d9fd23069a55dc91a42f7fddd0c7570.tar.gz
egawk-b4a2d75b7d9fd23069a55dc91a42f7fddd0c7570.tar.bz2
egawk-b4a2d75b7d9fd23069a55dc91a42f7fddd0c7570.zip
Merge branch 'extgawk' of ssh://git.sv.gnu.org/srv/git/gawk into extgawk
Diffstat (limited to 'awklib')
-rw-r--r--awklib/eg/lib/gettime.awk4
-rw-r--r--awklib/eg/prog/alarm.awk4
2 files changed, 4 insertions, 4 deletions
diff --git a/awklib/eg/lib/gettime.awk b/awklib/eg/lib/gettime.awk
index 95f9c329..4cb56330 100644
--- a/awklib/eg/lib/gettime.awk
+++ b/awklib/eg/lib/gettime.awk
@@ -1,4 +1,4 @@
-# gettimeofday.awk --- get the time of day in a usable format
+# getlocaltime.awk --- get the time of day in a usable format
#
# Arnold Robbins, arnold@skeeve.com, Public Domain, May 1993
#
@@ -25,7 +25,7 @@
# time["weeknum"] -- week number, Sunday first day
# time["altweeknum"] -- week number, Monday first day
-function gettimeofday(time, ret, now, i)
+function getlocaltime(time, ret, now, i)
{
# get time once, avoids unnecessary system calls
now = systime()
diff --git a/awklib/eg/prog/alarm.awk b/awklib/eg/prog/alarm.awk
index 53563d15..9bb1633c 100644
--- a/awklib/eg/prog/alarm.awk
+++ b/awklib/eg/prog/alarm.awk
@@ -1,6 +1,6 @@
# alarm.awk --- set an alarm
#
-# Requires gettimeofday() library function
+# Requires getlocaltime() library function
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# May 1993
@@ -53,7 +53,7 @@ BEGIN \
minute = atime[2] + 0 # force numeric
# get current broken down time
- gettimeofday(now)
+ getlocaltime(now)
# if time given is 12-hour hours and it's after that
# hour, e.g., `alarm 5:30' at 9 a.m. means 5:30 p.m.,