FixedDateMethods class | QSYS API Reference Guide
Estimated reading time: 5 minutes
Contains extension methods for handling RPG operations for FixedDate values.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Methods
DateTime AddDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
Adds a duration span to a date or a timestamp value.
DateTime AddDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
DateTime AddDurationToTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
Adds a duration span to a time value.
DateTime AddDurationToTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
char MoveLeftToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
RPG’s MOVEL. Moves left a date, time, timestamp in the given format to a char value.
char MoveLeftToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
char MoveRightToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
RPG’s MOVE. Moves right a date in the given format to a char value.
char MoveRightToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
DateTime NormalizeYear<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
Turns a 4 digit year into a 2 digit year between 1940 and 2039
DateTime NormalizeYear<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
DateTime SubtractDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
Subtracts a duration span from a date or a timestamp value.
DateTime SubtractDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
DateTime SubtractDurationFromTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
Subtracts a duration span from a time value.
DateTime SubtractDurationFromTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> dateTime, double duration, DurationCode durationCode)
DateTime TimestampToDate<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
Returns the Date portion of a timestamp.
DateTime TimestampToDate<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate)
double ToDouble<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
Converts a fixed date value to double.
double ToDouble<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
decimal ToFixedDecimal<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, int digits, int decimals)
Converts a fixed date value to a decimal.
decimal ToFixedDecimal<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, int digits, int decimals)
float ToFloat<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
Converts a fixed date value to float.
float ToFloat<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
short ToInt16<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
Converts a fixed date value to int 16.
short ToInt16<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
int ToInt32<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
Converts a fixed date value to int 32.
int ToInt32<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
long ToInt64<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)
Converts a fixed date value to int 64.
long ToInt64<TFormat, TSeparator>(FixedDate<TFormat, TSeparator> fixedDate, bool throwOnOverflow)