01-11-2010
Is there any ntp command for windows ?. The built in internet time sync in windows wont work if the system time difference is huge (like years) from actual time. My laptop is manufactured in 2004 so the time defaults to July 2004 if the bios battery runs out of charge.
Usually i dont care what time my laptop keeps, but the websites that requires user accounts wont login properly if the system time is wrong, i didnt know that websites really cares about my system time. Is there anyway to bypass this ?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Any suggestion to get the AWK output with time in each line ? I want to have the vmstat in solaris with time append to everyline like this:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 s3 sd in sy cs... (2 Replies)
Discussion started by: roxy2k
2 Replies
2. Shell Programming and Scripting
give a date and time:
Jun 12 21:05:16
06-12-2012 21:05:16
2012/06/12 21:05:16
How can i subtract these dates and times from the current date and time and get back the difference in seconds?
a one liner like:
echo "Jun 12 21:05:16" | some perl/awk programming
90900s (2 Replies)
Discussion started by: SkySmart
2 Replies
3. Shell Programming and Scripting
Hello All,
I would like to display the current time in prompt.
I tried using following command:
export PS1="$(date +%k:%M:%S) $ "
but it gave me a fixed time in prompt whereas my objective is to get the current time everytime.
$ export PS1="$(date +%k:%M:%S) $ "
17:42:42 $
17:42:42 $... (32 Replies)
Discussion started by: manishdivs
32 Replies
4. Shell Programming and Scripting
Hi Folks,
My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST.
IST time leads 9:30 mins to EDT. and i wrote something like below.
... (6 Replies)
Discussion started by: Showdown
6 Replies
5. Shell Programming and Scripting
i have file 1.txt
asdas|csada|13|03|10|04|23|A1|canberra
sdasd|sfdsf|13|04|26|23|28|A1|sydney
i want to add today's date and time in the end of each row
expected output
asdas|csada|13|03|10|04|23|A1|canberra|130430|1358
sdasd|sfdsf|13|04|26|23|28|A1|sydney|130430|1358
todays date... (10 Replies)
Discussion started by: radius
10 Replies
6. Shell Programming and Scripting
Hi guys,
I am having file which contains below data.
2012-04-24 08:40:13 10739022730 1027699274PersonInfoShipTO details missing FirstName,LastName,
2012-04-24 08:40:13 10739022730 1027699274PersonInfoShipTO details missing FirstName,LastName,
2012-04-24 08:40:13 ... (2 Replies)
Discussion started by: mohanalakshmi
2 Replies
7. Shell Programming and Scripting
Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone.
For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies
8. Programming
Just finished a quick Python script to send the current unix time over to the Arduino from macOS, so in the absence of GPS or some other way to get the unix timestamp (epoch time) to the Arduino, I can get my macOS and Arduino UNO synced to within a second.
Normally, when the Arduino starts... (9 Replies)
Discussion started by: Neo
9 Replies
LEARN ABOUT FREEBSD
inittodr
INITTODR(9) BSD Kernel Developer's Manual INITTODR(9)
NAME
inittodr -- initialize system time
SYNOPSIS
#include <sys/types.h>
#include <sys/systm.h>
void
inittodr(time_t base);
DESCRIPTION
The inittodr() function determines the time and sets the system clock. It tries to pick the correct time using a set of heuristics that
examine the system's battery backed clock and the time obtained from the root file system, as given in base. How the base value is obtained
will vary depending on the root file system type. The heuristics used include:
o If the battery-backed clock has a valid time, it is used.
o If the battery-backed clock does not have a valid time, the time provided in base will be used.
Once a system time has been determined, it is stored in the time variable.
DIAGNOSTICS
The inittodr() function prints diagnostic messages if it has trouble figuring out the system time. Conditions that can cause diagnostic mes-
sages to be printed include:
o The battery-backed clock's time appears nonsensical.
SEE ALSO
resettodr(9), time(9)
BUGS
On many systems, inittodr() has to convert from a time expressed in terms of year, month, day, hours, minutes, and seconds to time, expressed
in seconds. Many of the implementations could share code, but do not.
Each system's heuristics for picking the correct time are slightly different.
The FreeBSD implementation should do a better job of validating the time provided in base when the battery-backed clock is unusable. Cur-
rently it unconditionally sets the system clock to this value.
BSD
March 22, 1997 BSD