Server IP : 149.255.58.128 / Your IP : 216.73.216.233
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/share/awk//gettime.awk
# getlocaltime.awk --- get the time of day in a usable format
#
# Arnold Robbins, arnold@skeeve.com, Public Domain, May 1993
#
# Returns a string in the format of output of date(1)
# Populates the array argument time with individual values:
# time["second"] -- seconds (0 - 59)
# time["minute"] -- minutes (0 - 59)
# time["hour"] -- hours (0 - 23)
# time["althour"] -- hours (0 - 12)
# time["monthday"] -- day of month (1 - 31)
# time["month"] -- month of year (1 - 12)
# time["monthname"] -- name of the month
# time["shortmonth"] -- short name of the month
# time["year"] -- year modulo 100 (0 - 99)
# time["fullyear"] -- full year
# time["weekday"] -- day of week (Sunday = 0)
# time["altweekday"] -- day of week (Monday = 0)
# time["dayname"] -- name of weekday
# time["shortdayname"] -- short name of weekday
# time["yearday"] -- day of year (0 - 365)
# time["timezone"] -- abbreviation of timezone name
# time["ampm"] -- AM or PM designation
# time["weeknum"] -- week number, Sunday first day
# time["altweeknum"] -- week number, Monday first day
function getlocaltime(time, ret, now, i)
{
# get time once, avoids unnecessary system calls
now = systime()
# return date(1)-style output
ret = strftime("%a %b %e %H:%M:%S %Z %Y", now)
# clear out target array
delete time
# fill in values, force numeric values to be
# numeric by adding 0
time["second"] = strftime("%S", now) + 0
time["minute"] = strftime("%M", now) + 0
time["hour"] = strftime("%H", now) + 0
time["althour"] = strftime("%I", now) + 0
time["monthday"] = strftime("%d", now) + 0
time["month"] = strftime("%m", now) + 0
time["monthname"] = strftime("%B", now)
time["shortmonth"] = strftime("%b", now)
time["year"] = strftime("%y", now) + 0
time["fullyear"] = strftime("%Y", now) + 0
time["weekday"] = strftime("%w", now) + 0
time["altweekday"] = strftime("%u", now) + 0
time["dayname"] = strftime("%A", now)
time["shortdayname"] = strftime("%a", now)
time["yearday"] = strftime("%j", now) + 0
time["timezone"] = strftime("%Z", now)
time["ampm"] = strftime("%p", now)
time["weeknum"] = strftime("%U", now) + 0
time["altweeknum"] = strftime("%W", now) + 0
return ret
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 20 2025 21:42:20 | 0 / root | 0755 | |
| | | | | |
assert.awk | 0.374 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
bits2str.awk | 0.326 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
cliff_rand.awk | 0.3 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ctime.awk | 0.229 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ftrans.awk | 0.308 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
getopt.awk | 3.201 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
gettime.awk | 2.433 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
group.awk | 1.724 KB | March 30 2022 22:25:14 | 0 / root | 0644 | |
have_mpfr.awk | 0.216 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
inplace.awk | 2.285 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
intdiv0.awk | 0.451 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
join.awk | 0.369 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
libintl.awk | 0.232 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
noassign.awk | 0.412 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ns_passwd.awk | 1.252 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ord.awk | 0.915 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
passwd.awk | 1.171 KB | March 30 2022 22:25:14 | 0 / root | 0644 | |
processarray.awk | 0.347 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
quicksort.awk | 1.007 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
readable.awk | 0.478 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
readfile.awk | 0.261 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
rewind.awk | 0.395 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
round.awk | 0.646 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
shellquote.awk | 0.461 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
strtonum.awk | 1.42 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
walkarray.awk | 0.209 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
zerofile.awk | 0.414 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |