FakeCalendarTextFormatterFormatDateDiffAsync - метод
Объект для преобразования квантов оставшегося/просроченного времени в текстовое значение.
Пространство имён: Tessa.BusinessCalendarСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask<string> FormatDateDiffAsync(
long? quants,
DateTime? sessionNow,
DateTime? sessionPlanned,
Guid calendarCardID,
string overdueFormat = null,
bool useOnlyDaysInAstronomicMode = false,
CancellationToken cancellationToken = default
)
Public Function FormatDateDiffAsync (
quants As Long?,
sessionNow As DateTime?,
sessionPlanned As DateTime?,
calendarCardID As Guid,
Optional overdueFormat As String = Nothing,
Optional useOnlyDaysInAstronomicMode As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of String)
public:
virtual ValueTask<String^> FormatDateDiffAsync(
Nullable<long long> quants,
Nullable<DateTime> sessionNow,
Nullable<DateTime> sessionPlanned,
Guid calendarCardID,
String^ overdueFormat = nullptr,
bool useOnlyDaysInAstronomicMode = false,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract FormatDateDiffAsync :
quants : Nullable<int64> *
sessionNow : Nullable<DateTime> *
sessionPlanned : Nullable<DateTime> *
calendarCardID : Guid *
?overdueFormat : string *
?useOnlyDaysInAstronomicMode : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _overdueFormat = defaultArg overdueFormat null
let _useOnlyDaysInAstronomicMode = defaultArg useOnlyDaysInAstronomicMode false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<string>
override FormatDateDiffAsync :
quants : Nullable<int64> *
sessionNow : Nullable<DateTime> *
sessionPlanned : Nullable<DateTime> *
calendarCardID : Guid *
?overdueFormat : string *
?useOnlyDaysInAstronomicMode : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _overdueFormat = defaultArg overdueFormat null
let _useOnlyDaysInAstronomicMode = defaultArg useOnlyDaysInAstronomicMode false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<string>
- quants NullableInt64
-
- sessionNow NullableDateTime
-
- sessionPlanned NullableDateTime
-
- calendarCardID Guid
-
- overdueFormat String (Optional)
-
- useOnlyDaysInAstronomicMode Boolean (Optional)
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskStringICalendarTextFormatterFormatDateDiffAsync(NullableInt64, NullableDateTime, NullableDateTime, Guid, String, Boolean, CancellationToken)