@@ -398,7 +398,7 @@ texts being (a) (see below), and with the Back-Cover Texts being (b)
398
398
* Ordinal Functions:: Functions for using characters as numbers
399
399
and vice versa.
400
400
* Join Function:: A function to join an array into a string.
401
- * Gettimeofday Function:: A function to get formatted times.
401
+ * Getlocaltime Function:: A function to get formatted times.
402
402
* Data File Management:: Functions for managing command-line data
403
403
files.
404
404
* Filetrans Function:: A function for handling data file
@@ -15487,7 +15487,7 @@ programming use.
15487
15487
* Ordinal Functions:: Functions for using characters as numbers and
15488
15488
vice versa.
15489
15489
* Join Function:: A function to join an array into a string.
15490
- * Gettimeofday Function:: A function to get formatted times.
15490
+ * Getlocaltime Function:: A function to get formatted times.
15491
15491
15492
15492
15493
15493
File: gawk.info, Node: Strtonum Function, Next: Assert Function, Up: General Functions
@@ -15833,7 +15833,7 @@ tests such as used here prohibitively expensive.
15833
15833
extensions, you can simplify `_ord_init' to loop from 0 to 255.
15834
15834
15835
15835
15836
- File: gawk.info, Node: Join Function, Next: Gettimeofday Function, Prev: Ordinal Functions, Up: General Functions
15836
+ File: gawk.info, Node: Join Function, Next: Getlocaltime Function, Prev: Ordinal Functions, Up: General Functions
15837
15837
15838
15838
13.2.6 Merging an Array into a String
15839
15839
-------------------------------------
@@ -15880,7 +15880,7 @@ concatenation. The lack of an explicit operator for concatenation
15880
15880
makes string operations more difficult than they really need to be.
15881
15881
15882
15882
15883
- File: gawk.info, Node: Gettimeofday Function, Prev: Join Function, Up: General Functions
15883
+ File: gawk.info, Node: Getlocaltime Function, Prev: Join Function, Up: General Functions
15884
15884
15885
15885
13.2.7 Managing the Time of Day
15886
15886
-------------------------------
@@ -15891,11 +15891,11 @@ with the time of day in human readable form. While `strftime()' is
15891
15891
extensive, the control formats are not necessarily easy to remember or
15892
15892
intuitively obvious when reading a program.
15893
15893
15894
- The following function, `gettimeofday ()', populates a user-supplied
15894
+ The following function, `getlocaltime ()', populates a user-supplied
15895
15895
array with preformatted time information. It returns a string with the
15896
15896
current time formatted in the same way as the `date' utility:
15897
15897
15898
- # gettimeofday .awk --- get the time of day in a usable format
15898
+ # getlocaltime .awk --- get the time of day in a usable format
15899
15899
15900
15900
# Returns a string in the format of output of date(1)
15901
15901
# Populates the array argument time with individual values:
@@ -15919,7 +15919,7 @@ current time formatted in the same way as the `date' utility:
15919
15919
# time["weeknum"] -- week number, Sunday first day
15920
15920
# time["altweeknum"] -- week number, Monday first day
15921
15921
15922
- function gettimeofday (time, ret, now, i)
15922
+ function getlocaltime (time, ret, now, i)
15923
15923
{
15924
15924
# get time once, avoids unnecessary system calls
15925
15925
now = systime()
@@ -15958,7 +15958,7 @@ current time formatted in the same way as the `date' utility:
15958
15958
The string indices are easier to use and read than the various
15959
15959
formats required by `strftime()'. The `alarm' program presented in
15960
15960
*note Alarm Program::, uses this function. A more general design for
15961
- the `gettimeofday ()' function would have allowed the user to supply an
15961
+ the `getlocaltime ()' function would have allowed the user to supply an
15962
15962
optional timestamp value to use instead of the current time.
15963
15963
15964
15964
@@ -18389,8 +18389,8 @@ prints the message on the standard output. In addition, you can give it
18389
18389
the number of times to repeat the message as well as a delay between
18390
18390
repetitions.
18391
18391
18392
- This program uses the `gettimeofday ()' function from *note
18393
- Gettimeofday Function::.
18392
+ This program uses the `getlocaltime ()' function from *note
18393
+ Getlocaltime Function::.
18394
18394
18395
18395
All the work is done in the `BEGIN' rule. The first part is argument
18396
18396
checking and setting of defaults: the delay, the count, and the message
@@ -18405,7 +18405,7 @@ Statement::), but the processing could be done with a series of
18405
18405
18406
18406
# alarm.awk --- set an alarm
18407
18407
#
18408
- # Requires gettimeofday () library function
18408
+ # Requires getlocaltime () library function
18409
18409
# usage: alarm time [ "message" [ count [ delay ] ] ]
18410
18410
18411
18411
BEGIN \
@@ -18461,7 +18461,7 @@ alarm:
18461
18461
minute = atime[2] + 0 # force numeric
18462
18462
18463
18463
# get current broken down time
18464
- gettimeofday (now)
18464
+ getlocaltime (now)
18465
18465
18466
18466
# if time given is 12-hour hours and it's after that
18467
18467
# hour, e.g., `alarm 5:30' at 9 a.m. means 5:30 p.m.,
@@ -27030,7 +27030,7 @@ Index
27030
27030
(line 6)
27031
27031
* functions, library, managing data files: Data File Management.
27032
27032
(line 6)
27033
- * functions, library, managing time: Gettimeofday Function.
27033
+ * functions, library, managing time: Getlocaltime Function.
27034
27034
(line 6)
27035
27035
* functions, library, merging arrays into strings: Join Function.
27036
27036
(line 6)
@@ -27185,6 +27185,8 @@ Index
27185
27185
* getline command, variants: Getline Summary. (line 6)
27186
27186
* getline statement, BEGINFILE/ENDFILE patterns and: BEGINFILE/ENDFILE.
27187
27187
(line 54)
27188
+ * getlocaltime() user-defined function: Getlocaltime Function.
27189
+ (line 16)
27188
27190
* getopt() function (C library): Getopt Function. (line 15)
27189
27191
* getopt() user-defined function: Getopt Function. (line 108)
27190
27192
* getpwent() function (C library): Passwd Functions. (line 16)
@@ -27196,8 +27198,6 @@ Index
27196
27198
* gettext library: Explaining gettext. (line 6)
27197
27199
* gettext library, locale categories: Explaining gettext. (line 80)
27198
27200
* gettext() function (C library): Explaining gettext. (line 62)
27199
- * gettimeofday() user-defined function: Gettimeofday Function.
27200
- (line 16)
27201
27201
* GMP: Arbitrary Precision Arithmetic.
27202
27202
(line 6)
27203
27203
* GNITS mailing list: Acknowledgments. (line 52)
@@ -27446,7 +27446,7 @@ Index
27446
27446
(line 6)
27447
27447
* libraries of awk functions, managing, data files: Data File Management.
27448
27448
(line 6)
27449
- * libraries of awk functions, managing, time: Gettimeofday Function.
27449
+ * libraries of awk functions, managing, time: Getlocaltime Function.
27450
27450
(line 6)
27451
27451
* libraries of awk functions, merging arrays into strings: Join Function.
27452
27452
(line 6)
@@ -28296,13 +28296,13 @@ Index
28296
28296
* tilde (~), ~ operator: Regexp Usage. (line 19)
28297
28297
* time, alarm clock example program: Alarm Program. (line 9)
28298
28298
* time, localization and: Explaining gettext. (line 115)
28299
- * time, managing: Gettimeofday Function.
28299
+ * time, managing: Getlocaltime Function.
28300
28300
(line 6)
28301
28301
* time, retrieving: Time Functions. (line 17)
28302
28302
* timeout, reading input: Read Timeout. (line 6)
28303
28303
* timestamps: Time Functions. (line 6)
28304
28304
* timestamps, converting dates to: Time Functions. (line 74)
28305
- * timestamps, formatted: Gettimeofday Function.
28305
+ * timestamps, formatted: Getlocaltime Function.
28306
28306
(line 6)
28307
28307
* tolower() function: String Functions. (line 523)
28308
28308
* toupper() function: String Functions. (line 529)
@@ -28822,7 +28822,7 @@ Ref: Ordinal Functions-Footnote-1652320
28822
28822
Ref: Ordinal Functions-Footnote-2652572
28823
28823
Node: Join Function652781
28824
28824
Ref: Join Function-Footnote-1654552
28825
- Node: Gettimeofday Function654752
28825
+ Node: Getlocaltime Function654752
28826
28826
Node: Data File Management658467
28827
28827
Node: Filetrans Function659099
28828
28828
Node: Rewind Function663238
0 commit comments