IExactTimeService 接口
- 程序集
- ClassIsland.Core.dll
精确时间服务,可以从此服务获取来自NTP服务器的精确时间。
public interface IExactTimeService : INotifyPropertyChanged, INotifyPropertyChanging
- 继承成员
属性
SyncStatusMessage
时间同步状态信息
string SyncStatusMessage { get; set; }
属性值
方法
GetCurrentLocalDateTime()
获取当前精确当地时间。
DateTime GetCurrentLocalDateTime()
返回
- DateTime
当前时间
Sync()
立刻同步时间。
void Sync()