ComponentSpace Internet Time (NTP) Component 是一個 .NET 類別庫,可從 Internet 時間伺服器擷取精確的日期與時間資訊。它支援 Network Time Protocol、Time Protocol 與 Daytime Protocol,能直接傳回應用程式可處理的值,同時提供彈性的同步或非同步整合選項。
Network Time Protocol Client
實作 RFC 1305 定義的 Network Time Protocol,讓應用程式可查詢 Internet 時間伺服器並擷取精確的 UTC 時間戳記。NetworkTimeClient 類別會將結果以 System.DateTime 值傳回,可在 .NET 應用程式中輕鬆處理。
Support For Multiple Internet Time Protocols
提供多種廣泛使用的時間擷取標準實作,包括 Network Time Protocol (RFC 1305)、Time Protocol (RFC 868) 與 Daytime Protocol (RFC 867)。這讓應用程式可依據基礎架構需求,與不同類型的 Internet 時間伺服器通訊。
System.DateTime Integration
當通訊協定支援時,會將擷取到的時間值以標準 System.DateTime 物件傳回。這讓開發人員可立即在應用程式邏輯中使用結果,並在需要時輕鬆將 UTC 值轉換為本地時間表示。