Mostrando postagens com marcador time. Mostrar todas as postagens
Mostrando postagens com marcador time. Mostrar todas as postagens

Windows Time Service (w32time) Synchronization


View time source
w32tm /query /computer:[IP] /source

Change time peers

w32tm /config /manualpeerlist:[server],0x8 /syncfromflags:MANUAL

The actual IP address of the NTP server or its host name must be entered instead of [server].
The flag "0x8" forces w32time not to send "symmetric active" packets but normal "client" requests which the NTP server replies to as usual.

Then the following command can be used to immediately make the changes effective:

w32tm /config /update
If this command has completed successfully your system clock has synchronized to the given NTP server. To check it open a Date and Time window (click "time" icon in the lower right corner of the desktop) -> Change date and time settings -> Internet Time.

Alternatively, the w32time service can be restarted:

net stop w32time && net start w32time


If the w32time service is restarted it sends immediately a request to the NTP server. Additionally, the command:

w32tm /resync
can be used to let w32time send a request.


To configure a client computer or a member server to sync time from the domain, run the following command:

w32tm /config /syncfromflags:domhier /update

And then stop and restart the time service by running:

net stop w32time && net start w32time 


Setting Timezone

prompt:
tzutil /l   - list Timezones
tzutil /s "TIMEZONE"


tzutil /s "SA Western Standard Time"
tzutil /s "SA Western Standard Time_dstoff"  (suffix _dstoff to DISABLE DAYLIGHT SAVING)

PowerShell:
Set-TimeZone -Name "TIMEZONE"


Set-TimeZone -Name "SA Western Standard Time"


 


Convert date time string to unix timestamp

convert date time string to unix timestamp in linux

Get date format style /var/log/messages
date '+%b %d %R:%S'

Convert date time string to unix timestamp
date -d 'Aug 21 15:29:40' +%s

Get current date time in unix timestamp
date +%s

Set TimeZone Linux

Set TimeZone Linux

List timezones
timedatectl list-timezones

Set timezone
timedatectl set-timezone America/Manaus

Monitoring response time with curl

   curl -s -o /dev/null -w "Conecction: %{time_connect}s | Start transfer: %{time_starttransfer}s | Total time: %{time_total}s\n" ...

Mais vistos