Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Public Member Functions | List of all members
Loyc.SyncLib.Impl.SyncTimeAsTicks< SM > Struct Template Reference

Synchronizes date/time values as integers: DateTime as the 64-bit value of DateTime.ToBinary (which equals Ticks when the DateTimeKind is Unspecified, and preserves the Kind otherwise), TimeSpan as TimeSpan.Ticks, and DateTimeOffset — the one type here that does not fit in 64 bits — as a tuple of two integers: Ticks, and the UTC offset in minutes. More...


Source file:
Inheritance diagram for Loyc.SyncLib.Impl.SyncTimeAsTicks< SM >:
Loyc.SyncLib.ISyncField< SyncManager, T > Loyc.SyncLib.ISyncField< SyncManager, T > Loyc.SyncLib.ISyncField< SyncManager, T > Loyc.SyncLib.ISyncField< SyncManager, T > Loyc.SyncLib.ISyncField< SyncManager, T > Loyc.SyncLib.ISyncField< SyncManager, T >

Remarks

Synchronizes date/time values as integers: DateTime as the 64-bit value of DateTime.ToBinary (which equals Ticks when the DateTimeKind is Unspecified, and preserves the Kind otherwise), TimeSpan as TimeSpan.Ticks, and DateTimeOffset — the one type here that does not fit in 64 bits — as a tuple of two integers: Ticks, and the UTC offset in minutes.

Type Constraints
SM :ISyncManager 

Public fields

const int TicksPerMinute = 60_000_000_0
 

Public Member Functions

DateTime Sync (ref SM sync, FieldId name, DateTime value)
 
DateTime Sync (ref SM sync, FieldId name, DateTime?value)
 
DateTimeOffset Sync (ref SM sm, FieldId name, DateTimeOffset value)
 
DateTimeOffset Sync (ref SM sm, FieldId name, DateTimeOffset?value)
 
TimeSpan Sync (ref SM sync, FieldId name, TimeSpan value)
 
TimeSpan Sync (ref SM sync, FieldId name, TimeSpan?value)
 
- Public Member Functions inherited from Loyc.SyncLib.ISyncField< SyncManager, T >
Sync (ref SyncManager sync, FieldId name, T?value)