Thread: date and ntpclient usage.

  1. #1
    Registered User
    Join Date
    Mar 2008
    Location
    India
    Posts
    147

    date and ntpclient usage.

    Hello friends,

    Iam using opensource ntpclient to keep update my target board time.

    My general doubt is if i make change of my target board time using the date command , does it have the same effect which ntpclient utility do.

    I mean do this ntpclient will update any kernal clock ( i donot know it exists or not as such which date command will not do ).

    My scenario is as below i.e i have to add offset to the existing time when current time falls between a specified time interval. What my plan is once ntpclient completes synching with the ntpserver then i just update the time by this offset using "date" command (ofcourse when current time is between required interval).

    Hope iam clear about my requirement here.

    thanks and regards

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Quote Originally Posted by vlrk View Post
    Hello friends,
    My general doubt is if i make change of my target board time using the date command , does it have the same effect which ntpclient utility do.
    Yes, with most all of the time functions you are updating the system clock. This, however, does NOT update the hardware RTC, only the system's time. To update the hardware RTC, you'll have to use something like hwclock to force the write to that device.

    Andy

Popular pages Recent additions subscribe to a feed