Showing posts with label time. Show all posts
Showing posts with label time. Show all posts

Thursday, July 18, 2013

Windows Manual Time Synchronization

w32tm /config /manualpeerlist:time.nist.gov,0x8 /syncfromflags:MANUAL
w32tm /config /update
net time /querysntp
w32tm /resync

Tuesday, March 27, 2012

Day of the Week in GAWK

gawk '
BEGIN {
  for (d = 1; d <= 31; d++) {
    t = mktime("2008 08 " d " 0 0 0")
    print d, strftime("%A", t)
  }
}'


The output is:

1 Friday
2 Saturday
3 Sunday
4 Monday
5 Tuesday
6 Wednesday
7 Thursday
8 Friday
9 Saturday
10 Sunday
11 Monday
12 Tuesday
13 Wednesday
14 Thursday
15 Friday
16 Saturday
17 Sunday
18 Monday
19 Tuesday
20 Wednesday
21 Thursday
22 Friday
23 Saturday
24 Sunday
25 Monday
26 Tuesday
27 Wednesday
28 Thursday
29 Friday
30 Saturday
31 Sunday

Compare to:
$ cal 8 2008
    August 2008
Su Mo Tu We Th Fr Sa
                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

Wednesday, November 24, 2010

Make WinXP’s NTP client poll more frequently (hourly)

At the registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient

Change the value SpecialPollInterval to 3600

3600 seconds = 1 hour

Save and restart the Windows Time service:

net stop "Windows Time"
net start "Windows Time"