|
Enhanced C#
Loyc library documentation
|
Extension methods of ISyncManager for synchronizing the date/time types DateTime, DateTimeOffset and TimeSpan (plus DateOnly and TimeOnly on .NET 6+, but no target framework of Loyc.Essentials is currently new enough to include them). More...
Extension methods of ISyncManager for synchronizing the date/time types DateTime, DateTimeOffset and TimeSpan (plus DateOnly and TimeOnly on .NET 6+, but no target framework of Loyc.Essentials is currently new enough to include them).
The Sync methods choose a representation automatically (see SyncTime{SM}):
The other methods (SyncDateAsString, SyncTimeAsTicks, SyncTimeAsSeconds, etc.) each store values in one specific way, regardless of the data format.
Static Public Member Functions | |
| static DateTime | Sync< SM > (this SM sync, FieldId name, DateTime value) |
| static DateTime | Sync< SM > (this SM sync, FieldId name, DateTime?value) |
| static DateTimeOffset | Sync< SM > (this SM sync, FieldId name, DateTimeOffset value) |
| static DateTimeOffset | Sync< SM > (this SM sync, FieldId name, DateTimeOffset?value) |
| static TimeSpan | Sync< SM > (this SM sync, FieldId name, TimeSpan value) |
| static TimeSpan | Sync< SM > (this SM sync, FieldId name, TimeSpan?value) |
| static DateTime | SyncDateAsString< SM > (this SM sync, FieldId name, DateTime value, string?preferredFormat=null, DateTimeStyles parseMode=DateTimeStyles.AllowWhiteSpaces) |
| static DateTime | SyncDateAsString< SM > (this SM sync, FieldId name, DateTime?value, string?preferredFormat=null, DateTimeStyles parseMode=DateTimeStyles.AllowWhiteSpaces) |
| static DateTimeOffset | SyncDateAsString< SM > (this SM sync, FieldId name, DateTimeOffset value, string?preferredFormat=null, DateTimeStyles parseMode=DateTimeStyles.AllowWhiteSpaces) |
| static DateTimeOffset | SyncDateAsString< SM > (this SM sync, FieldId name, DateTimeOffset?value, string?preferredFormat=null, DateTimeStyles parseMode=DateTimeStyles.AllowWhiteSpaces) |
| static TimeSpan | SyncTimeAsString< SM > (this SM sync, FieldId name, TimeSpan value, string?preferredFormat=null) |
| static TimeSpan | SyncTimeAsString< SM > (this SM sync, FieldId name, TimeSpan?value, string?preferredFormat=null) |
| static DateTime | SyncAsTicks< SM > (this SM sync, FieldId name, DateTime value) |
| static DateTime | SyncAsTicks< SM > (this SM sync, FieldId name, DateTime?value) |
| static DateTimeOffset | SyncAsTicks< SM > (this SM sync, FieldId name, DateTimeOffset value) |
| static DateTimeOffset | SyncAsTicks< SM > (this SM sync, FieldId name, DateTimeOffset?value) |
| static TimeSpan | SyncAsTicks< SM > (this SM sync, FieldId name, TimeSpan value) |
| static TimeSpan | SyncAsTicks< SM > (this SM sync, FieldId name, TimeSpan?value) |
| static DateTime | SyncAsDayNumber< SM > (this SM sync, FieldId name, DateTime value, bool asInt32=false) |
| static DateTime | SyncAsDayNumber< SM > (this SM sync, FieldId name, DateTime?value, bool asInt32=false) |
1.8.7