GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NTP_GETTIME(2) FreeBSD System Calls Manual NTP_GETTIME(2)

ntp_gettime
NTP ?桼?????ץꥱ???????󥤥󥿥ե?????

<sys/timex.h> int ntp_gettime(struct ntptimeval *ntv)

ntp_gettime() ?ˤ??ä??֤??????????ϡ? timespec ??¤?Τ˳?Ǽ?????ޤ??????ޥ??????? (?äȥޥ???????) ?ޤ??? ?ʥ??? (?äȥʥ???) ?Τɤ??餫?η????Ǥ??뤳?Ȥ??Ǥ??ޤ??? ??????????ͭ?η????ϡ? ntp_adjtime() ?????ƥॳ?????ˤ??ä??֤????? status ??ɤ? STA_NANO ?ӥåȤˤ??äƷ??ꤵ???ޤ??? ntp_gettime() ?ϰʲ??Υ????Ф????? ntptimeval ??¤?ΤؤΥݥ??󥿤??????Ȥ??ƻ????ޤ?:
struct ntptimeval {
	struct timespec time;	/* ???ߤλ??? (ns) (ro) */
	long maxerror;		/* ???????? (us) (ro) */
	long esterror;		/* ???????? (us) (ro) */
	long tai;		/* TAI-UTC ???ե??å? */
	int time_state;		/* ???־??? */
};

???????ϰʲ??Τ褦?????򤵤??ޤ?:

time
???ߤλ????Ǥ? (?ɼ???????)??
maxerror
?ޥ???????ñ?̤Ǥκ????????Ǥ? (?ɼ???????)??
esterror
?ޥ???????ñ?̤Ǥο????????Ǥ? (?ɼ???????)??
tai
TAI ?????? UTC ?λ??֥????????δ֤???ñ?̤Υ??ե??åȤǤ??? ???Υ??ե??åȤ? 1 ǯ???? 2 ??ȯ?Ԥ??졢 TAI (???ä??ʤ?) ?? UTC (???ä?????) ?Ȥδ֤??????ú??Ǥ??? ntpd(8) ?ޤ??Ϥ???¾?Υ??????????Ȥ??????ͤ????????ޤ??? ?? 0 ??????????̣???ޤ??? ???Υޥ˥奢???ڡ????????դǤϡ????Υ??ե??åȤ? 32 ?äǤ???
time_state
???߻????ξ??֤Ǥ???

The ntp_gettime() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

?????ꤦ?륯???å??ξ??֤ϰʲ??ΤȤ????Ǥ?:

???Ƥ? OK ?ǡ????äηٹ??⤢???ޤ?????
???α??äηٹ??Ǥ??? ???????κǸ??? 23:59:59 ?θ????ɲä? 1 ?ä??????????ޤ???
???α??äηٹ??Ǥ??? ???????κǸ??? 23:59:59 ?ϥ????åפ????ޤ???
???äηв????Ǥ???
???ä?ȯ?????ޤ?????
?????å???Ʊ?????Ƥ??ޤ?????

ntp_adjtime(2), ntpd(8)
http://www.bipm.fr/enus/5_Scientific/c_time/time_1.html
 
http://www.boulder.nist.gov/timefreq/general/faq.htm
 
ftp://time.nist.gov/pub/leap-seconds.list
 

???Υޥ˥奢???ڡ????? Tom Rhodes ⟨trhodes@FreeBSD.org⟩ ???񤭤ޤ?????
June 21, 2003 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 2 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.