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

Signature Description
AddDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Double, DurationCode) Adds a duration span to a date or a timestamp value.
AddDurationToTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Double, DurationCode) Adds a duration span to a time value.
MoveLeftToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>) RPG’s MOVEL. Moves left a date, time, timestamp in the given format to a char value.
MoveRightToChar<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>) RPG’s MOVE. Moves right a date in the given format to a char value.
NormalizeYear<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>) Turns a 4 digit year into a 2 digit year between 1940 and 2039
SubtractDuration<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Double, DurationCode) Subtracts a duration span from a date or a timestamp value.
SubtractDurationFromTime<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Double, DurationCode) Subtracts a duration span from a time value.
TimestampToDate<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>) Returns the Date portion of a timestamp.
ToDouble<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Boolean) Converts a fixed date value to double.
ToFixedDecimal<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Int32, Int32) Converts a fixed date value to a decimal.
ToFloat<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Boolean) Converts a fixed date value to float.
ToInt16<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Boolean) Converts a fixed date value to int 16.
ToInt32<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Boolean) Converts a fixed date value to int 32.
ToInt64<TFormat, TSeparator>(FixedDate<TFormat, TSeparator>, Boolean) Converts a fixed date value to int 64.

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)