IntegerMethods class | QSYS API Reference Guide

Estimated reading time: 69 minutes

Contains extension methods for handling RPG operations and conversions for Integer (2, 4, and 8-byte long) values.

Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object

Methods

Signature Description
EditWord(Int16, String) EditWord summary.
EditWord(Int32, String) EditWord summary.
EditWord(Int64, String) EditWord summary.
MoveLeft(Int16, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators.
MoveLeft(Int16, IFixedDateTime) RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators.
MoveLeft(Int32, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators.
MoveLeft(Int32, IFixedDateTime) RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators.
MoveLeft(Int64, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.
MoveLeft(Int64, IFixedDateTime) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.
MoveLeft(Int16, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int2 (short) to a decimal.
MoveLeft(Int32, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int4 (int) to a decimal.
MoveLeft(Int64, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int8 (long) to a decimal.
MoveLeft(Int16, String) RPG’s MOVEL. Moves left int2 (short) to a string.
MoveLeft(Int32, String) RPG’s MOVEL. Moves left int4 (int) to a string.
MoveLeft(Int64, String) RPG’s MOVEL. Moves left int8 (long) to a string.
MoveLeft(Int16, Int32) RPG’s MOVEL. Moves left an int2 (short) to an int4 (int).
MoveLeft(Int16, Int64) RPG’s MOVEL. Moves left an int2 (short) to an int8 (long).
MoveLeft(Int32, Int64) RPG’s MOVEL. Moves left an int4 (int) to an int8 (long).
MoveLeft(Int32, Int16) RPG’s MOVEL. Moves left an int4 (int) to an int2 (short).
MoveLeft(Int64, Int16) RPG’s MOVEL. Moves left an int8 (long) to an int2 (short).
MoveLeft(Int64, Int32) RPG’s MOVEL. Moves left an int8 (long) to an int4 (int).
MoveLeft(Int16, Int16) RPG’s MOVEL. Moves left an int2 (short) to an int2 (short), this is actually the same as assignment.
MoveLeft(Int32, Int32) RPG’s MOVEL. Moves left an int4 (int) to an int4 (int), this is actually the same as assignment.
MoveLeft(Int64, Int64) RPG’s MOVEL. Moves left an int8 (long) to an int8 (long), this is actually the same as assignment.
MoveLeftToChar(Int16) RPG’s MOVEL. Moves left a short into a character.
MoveLeftToChar(Int32) RPG’s MOVEL. Moves left a int into a character.
MoveLeftToChar(Int64) RPG’s MOVEL. Moves left a long into a character.
MoveLeftWithPad(Int16, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int16, IFixedDateTime) RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int32, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int32, IFixedDateTime) RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int64, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int64, IFixedDateTime) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.
MoveLeftWithPad(Int16, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int2 (short) to a decimal with pad.
MoveLeftWithPad(Int32, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int4 (int) to a decimal with pad.
MoveLeftWithPad(Int64, Decimal, Int32, Int32) RPG’s MOVEL. Moves left an int8 (long) to a decimal with pad.
MoveLeftWithPad(Int16, String) RPG’s MOVEL. Moves left int2 (short) to a string with pad.
MoveLeftWithPad(Int32, String) RPG’s MOVEL. Moves left int4 (int) to a string with pad.
MoveLeftWithPad(Int64, String) RPG’s MOVEL. Moves left int8 (long) to a string with pad.
MoveLeftWithPad(Int16, Int32) RPG’s MOVEL. Moves left an int2 (short) to an int4 (int) with pad.
MoveLeftWithPad(Int16, Int64) RPG’s MOVEL. Moves left an int2 (short) to an int8 (long) with pad.
MoveLeftWithPad(Int32, Int64) RPG’s MOVEL. Moves left an int4 (int) to an int8 (long) with pad.
MoveRight(Int16, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators.
MoveRight(Int16, IFixedDateTime) RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators.
MoveRight(Int32, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators.
MoveRight(Int32, IFixedDateTime) RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators.
MoveRight(Int64, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.
MoveRight(Int64, IFixedDateTime) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.
MoveRight(Int16, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int2 (short) to a decimal.
MoveRight(Int32, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int4 (int) to a decimal.
MoveRight(Int64, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int8 (long) to a decimal.
MoveRight(Int16, String) RPG’s MOVE. Moves right int2 (short) to a string.
MoveRight(Int32, String) RPG’s MOVE. Moves right int4 (int) to a string.
MoveRight(Int64, String) RPG’s MOVE. Moves right int8 (long) to a string.
MoveRight(Int16, Int32) RPG’s MOVE. Moves right an int2 (short) to an int4 (int).
MoveRight(Int16, Int64) RPG’s MOVE. Moves right an int2 (short) to an int8 (long).
MoveRight(Int32, Int64) RPG’s MOVE. Moves right an int4 (int) to an int8 (long).
MoveRight(Int32, Int16) RPG’s MOVE. Moves right an int4 (int) to an int2 (short).
MoveRight(Int64, Int16) RPG’s MOVE. Moves right an int8 (long) to an int2 (short).
MoveRight(Int64, Int32) RPG’s MOVE. Moves right an int8 (long) to an int4 (int).
MoveRight(Int16, Int16) RPG’s MOVE. Moves right an int2 (short) to an int2 (short), this is actually the same as assignment.
MoveRight(Int32, Int32) RPG’s MOVE. Moves right an int4 (int) to an int4 (int), this is actually the same as assignment.
MoveRight(Int64, Int64) RPG’s MOVE. Moves right an int8 (long) to an int8 (long), this is actually the same as assignment.
MoveRightToChar(Int16) RPG’s MOVE. Moves right a short into a character.
MoveRightToChar(Int32) RPG’s MOVE. Moves right a int into a character.
MoveRightToChar(Int64) RPG’s MOVE. Moves right a long into a character.
MoveRightWithPad(Int16, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators with pad.
MoveRightWithPad(Int16, IFixedDateTime) RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators with pad.
MoveRightWithPad(Int32, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators with pad.
MoveRightWithPad(Int32, IFixedDateTime) RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators with pad.
MoveRightWithPad(Int64, DateTime, DateTimeDataKind, DateTimeFormat) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.
MoveRightWithPad(Int64, IFixedDateTime) RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.
MoveRightWithPad(Int16, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int2 (short) to a decimal with pad.
MoveRightWithPad(Int32, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int4 (int) to a decimal with pad.
MoveRightWithPad(Int64, Decimal, Int32, Int32) RPG’s MOVE. Moves right an int8 (long) to a decimal with pad.
MoveRightWithPad(Int16, String) RPG’s MOVE. Moves right int2 (short) to a string with pad.
MoveRightWithPad(Int32, String) RPG’s MOVE. Moves right int4 (int) to a string with pad.
MoveRightWithPad(Int64, String) RPG’s MOVE. Moves right int8 (long) to a string with pad.
MoveRightWithPad(Int16, Int32) RPG’s MOVE. Moves right an int2 (short) to an int4 (int) with pad.
MoveRightWithPad(Int16, Int64) RPG’s MOVE. Moves right an int2 (short) to an int8 (long) with pad.
MoveRightWithPad(Int32, Int64) RPG’s MOVE. Moves right an int4 (int) to an int8 (long) with pad.
Sum(Int16[]) Returns the added values of each element in the array.
Sum(Int32[]) Returns the added values of each element in the array.
Sum(Int64[]) Returns the added values of each element in the array.
TestTime(Int16, DateTimeDataKind, DateTimeFormat) Tests whether a short contains a valid date/time/timestamp value.
TestTime(Int32, DateTimeDataKind, DateTimeFormat) Tests whether an int number contains a valid date/time/timestamp value.
TestTime(Int64, DateTimeDataKind, DateTimeFormat) Tests whether a long number contains a valid date/time/timestamp value.
ToDate(Int32, DateTimeFormat) ToDate summary.
ToDate(Int16, DateTimeFormat) ToDate summary.
ToDate(Int64, DateTimeFormat) ToDate summary.
ToFixedDecimal(Int32, Int32, Int32) Adjusts the digits and decimal positions of a fixed decimal number using Away From Zero rounding.
ToFixedDecimalRounded(Int32, Int32, Int32) Adjusts the digits and decimal positions of a fixed decimal number using Away From Zero rounding.
ToStringByte(Byte) Returns as a string the char equivalent of a byte number.
ToStringInt(Int32) Returns as a string the char equivalent of a int number.
ToStringLong(Int64) Returns as a string the char equivalentof a long number.
ToStringShort(Int16) Returns as a string the char equivalent of a short number.
ToTime(Int32, DateTimeFormat) ToTime summary.
ToTime(Int16, DateTimeFormat) ToTime summary.
ToTime(Int64, DateTimeFormat) ToTime summary.
ToTimestamp(Int32) ToTimestamp summary.
ToTimestamp(Int16) ToTimestamp summary.
ToTimestamp(Int64) ToTimestamp summary.

string EditWord(short num, string editwordString)

EditWord summary.

string EditWord(short num, string editwordString)

Parameters

Type Parameter name Description
Int16 num EditWord num param.
String editwordString EditWord editwordString param.

Returns

Type Description
String EditWord returns.

string EditWord(int num, string editwordString)

EditWord summary.

string EditWord(int num, string editwordString)

Parameters

Type Parameter name Description
Int32 num EditWord num param.
String editwordString EditWord editwordString param.

Returns

Type Description
String EditWord returns.

string EditWord(long num, string editwordString)

EditWord summary.

string EditWord(long num, string editwordString)

Parameters

Type Parameter name Description
Int64 num EditWord num param.
String editwordString EditWord editwordString param.

Returns

Type Description
String EditWord returns.

DateTime MoveLeft(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators.

DateTime MoveLeft(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeft(short num, IFixedDateTime dateTime)

RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators.

DateTime MoveLeft(short num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeft(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators.

DateTime MoveLeft(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeft(int num, IFixedDateTime dateTime)

RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators.

DateTime MoveLeft(int num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeft(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.

DateTime MoveLeft(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeft(long num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.

DateTime MoveLeft(long num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

decimal MoveLeft(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int2 (short) to a decimal.

decimal MoveLeft(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveLeft(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int4 (int) to a decimal.

decimal MoveLeft(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveLeft(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int8 (long) to a decimal.

decimal MoveLeft(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

string MoveLeft(short num, string targetOperand)

RPG’s MOVEL. Moves left int2 (short) to a string.

string MoveLeft(short num, string targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveLeft(int num, string targetOperand)

RPG’s MOVEL. Moves left int4 (int) to a string.

string MoveLeft(int num, string targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveLeft(long num, string targetOperand)

RPG’s MOVEL. Moves left int8 (long) to a string.

string MoveLeft(long num, string targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

int MoveLeft(short num, int targetOperand)

RPG’s MOVEL. Moves left an int2 (short) to an int4 (int).

int MoveLeft(short num, int targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveLeft(short num, long targetOperand)

RPG’s MOVEL. Moves left an int2 (short) to an int8 (long).

long MoveLeft(short num, long targetOperand)

Parameters

Type Parameter name Description
Int16 num long value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

long MoveLeft(int num, long targetOperand)

RPG’s MOVEL. Moves left an int4 (int) to an int8 (long).

long MoveLeft(int num, long targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

short MoveLeft(int num, short targetOperand)

RPG’s MOVEL. Moves left an int4 (int) to an int2 (short).

short MoveLeft(int num, short targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

short MoveLeft(long num, short targetOperand)

RPG’s MOVEL. Moves left an int8 (long) to an int2 (short).

short MoveLeft(long num, short targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

int MoveLeft(long num, int targetOperand)

RPG’s MOVEL. Moves left an int8 (long) to an int4 (int).

int MoveLeft(long num, int targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

short MoveLeft(short num, short targetOperand)

RPG’s MOVEL. Moves left an int2 (short) to an int2 (short), this is actually the same as assignment.

short MoveLeft(short num, short targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

int MoveLeft(int num, int targetOperand)

RPG’s MOVEL. Moves left an int4 (int) to an int4 (int), this is actually the same as assignment.

int MoveLeft(int num, int targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveLeft(long num, long targetOperand)

RPG’s MOVEL. Moves left an int8 (long) to an int8 (long), this is actually the same as assignment.

long MoveLeft(long num, long targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

char MoveLeftToChar(short num)

RPG’s MOVEL. Moves left a short into a character.

char MoveLeftToChar(short num)

Parameters

Type Parameter name Description
Int16 num The short value to move.

Returns

Type Description
Char The leftmost byte of the short value as a character.

char MoveLeftToChar(int num)

RPG’s MOVEL. Moves left a int into a character.

char MoveLeftToChar(int num)

Parameters

Type Parameter name Description
Int32 num The int value to move.

Returns

Type Description
Char The leftmost byte of the int value as a character.

char MoveLeftToChar(long num)

RPG’s MOVEL. Moves left a long into a character.

char MoveLeftToChar(long num)

Parameters

Type Parameter name Description
Int64 num The long value to move.

Returns

Type Description
Char The leftmost byte of the long value as a character.

DateTime MoveLeftWithPad(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeftWithPad(short num, IFixedDateTime dateTime)

RPG’s MOVEL. Moves left a int2 (short) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(short num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeftWithPad(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeftWithPad(int num, IFixedDateTime dateTime)

RPG’s MOVEL. Moves left a int4 (int) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(int num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeftWithPad(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveLeftWithPad(long num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.

DateTime MoveLeftWithPad(long num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

decimal MoveLeftWithPad(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int2 (short) to a decimal with pad.

decimal MoveLeftWithPad(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveLeftWithPad(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int4 (int) to a decimal with pad.

decimal MoveLeftWithPad(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveLeftWithPad(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVEL. Moves left an int8 (long) to a decimal with pad.

decimal MoveLeftWithPad(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

string MoveLeftWithPad(short num, string targetOperand)

RPG’s MOVEL. Moves left int2 (short) to a string with pad.

string MoveLeftWithPad(short num, string targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveLeftWithPad(int num, string targetOperand)

RPG’s MOVEL. Moves left int4 (int) to a string with pad.

string MoveLeftWithPad(int num, string targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveLeftWithPad(long num, string targetOperand)

RPG’s MOVEL. Moves left int8 (long) to a string with pad.

string MoveLeftWithPad(long num, string targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

int MoveLeftWithPad(short num, int targetOperand)

RPG’s MOVEL. Moves left an int2 (short) to an int4 (int) with pad.

int MoveLeftWithPad(short num, int targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveLeftWithPad(short num, long targetOperand)

RPG’s MOVEL. Moves left an int2 (short) to an int8 (long) with pad.

long MoveLeftWithPad(short num, long targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

long MoveLeftWithPad(int num, long targetOperand)

RPG’s MOVEL. Moves left an int4 (int) to an int8 (long) with pad.

long MoveLeftWithPad(int num, long targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

DateTime MoveRight(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators.

DateTime MoveRight(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRight(short num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators.

DateTime MoveRight(short num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRight(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators.

DateTime MoveRight(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRight(int num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators.

DateTime MoveRight(int num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRight(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.

DateTime MoveRight(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRight(long num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators.

DateTime MoveRight(long num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

decimal MoveRight(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int2 (short) to a decimal.

decimal MoveRight(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveRight(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int4 (int) to a decimal.

decimal MoveRight(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveRight(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int8 (long) to a decimal.

decimal MoveRight(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

string MoveRight(short num, string targetOperand)

RPG’s MOVE. Moves right int2 (short) to a string.

string MoveRight(short num, string targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveRight(int num, string targetOperand)

RPG’s MOVE. Moves right int4 (int) to a string.

string MoveRight(int num, string targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveRight(long num, string targetOperand)

RPG’s MOVE. Moves right int8 (long) to a string.

string MoveRight(long num, string targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

int MoveRight(short num, int targetOperand)

RPG’s MOVE. Moves right an int2 (short) to an int4 (int).

int MoveRight(short num, int targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveRight(short num, long targetOperand)

RPG’s MOVE. Moves right an int2 (short) to an int8 (long).

long MoveRight(short num, long targetOperand)

Parameters

Type Parameter name Description
Int16 num long value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

long MoveRight(int num, long targetOperand)

RPG’s MOVE. Moves right an int4 (int) to an int8 (long).

long MoveRight(int num, long targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

short MoveRight(int num, short targetOperand)

RPG’s MOVE. Moves right an int4 (int) to an int2 (short).

short MoveRight(int num, short targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

short MoveRight(long num, short targetOperand)

RPG’s MOVE. Moves right an int8 (long) to an int2 (short).

short MoveRight(long num, short targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

int MoveRight(long num, int targetOperand)

RPG’s MOVE. Moves right an int8 (long) to an int4 (int).

int MoveRight(long num, int targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

short MoveRight(short num, short targetOperand)

RPG’s MOVE. Moves right an int2 (short) to an int2 (short), this is actually the same as assignment.

short MoveRight(short num, short targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int16 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int16 The resulting short value of the operation.

int MoveRight(int num, int targetOperand)

RPG’s MOVE. Moves right an int4 (int) to an int4 (int), this is actually the same as assignment.

int MoveRight(int num, int targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveRight(long num, long targetOperand)

RPG’s MOVE. Moves right an int8 (long) to an int8 (long), this is actually the same as assignment.

long MoveRight(long num, long targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

char MoveRightToChar(short num)

RPG’s MOVE. Moves right a short into a character.

char MoveRightToChar(short num)

Parameters

Type Parameter name Description
Int16 num The short value to move.

Returns

Type Description
Char The rightmost byte of the short value as a character.

char MoveRightToChar(int num)

RPG’s MOVE. Moves right a int into a character.

char MoveRightToChar(int num)

Parameters

Type Parameter name Description
Int32 num The int value to move.

Returns

Type Description
Char The rightmost byte of the int value as a character.

char MoveRightToChar(long num)

RPG’s MOVE. Moves right a long into a character.

char MoveRightToChar(long num)

Parameters

Type Parameter name Description
Int64 num The long value to move.

Returns

Type Description
Char The rightmost byte of the long value as a character.

DateTime MoveRightWithPad(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(short num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRightWithPad(short num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int2 (short) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(short num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRightWithPad(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(int num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRightWithPad(int num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int4 (int) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(int num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRightWithPad(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(long num, DateTime dateTime, DateTimeDataKind dateTimeKind, DateTimeFormat dateTimeFormat)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
DateTime dateTime Date, Time, Timestamp.
DateTimeDataKind dateTimeKind DateTime Kind.
DateTimeFormat dateTimeFormat DateTime Format.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

DateTime MoveRightWithPad(long num, IFixedDateTime dateTime)

RPG’s MOVE. Moves right a int8 (long) to a datetime with given format and separators with pad.

DateTime MoveRightWithPad(long num, IFixedDateTime dateTime)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
IFixedDateTime dateTime Date, Time, Timestamp.

Returns

Type Description
DateTime The resulting DateTime value of the operation.

decimal MoveRightWithPad(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int2 (short) to a decimal with pad.

decimal MoveRightWithPad(short num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveRightWithPad(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int4 (int) to a decimal with pad.

decimal MoveRightWithPad(int num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

decimal MoveRightWithPad(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

RPG’s MOVE. Moves right an int8 (long) to a decimal with pad.

decimal MoveRightWithPad(long num, decimal targetOperand, int targetOperandDig, int targetOperandDec)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
Decimal targetOperand targetOperand represents what is currently in the target.
Int32 targetOperandDig number of digits in the targetOperand.
Int32 targetOperandDec number of decimal places in the targetOperand.

Returns

Type Description
Decimal The resulting decimal value of the operation.

string MoveRightWithPad(short num, string targetOperand)

RPG’s MOVE. Moves right int2 (short) to a string with pad.

string MoveRightWithPad(short num, string targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveRightWithPad(int num, string targetOperand)

RPG’s MOVE. Moves right int4 (int) to a string with pad.

string MoveRightWithPad(int num, string targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

string MoveRightWithPad(long num, string targetOperand)

RPG’s MOVE. Moves right int8 (long) to a string with pad.

string MoveRightWithPad(long num, string targetOperand)

Parameters

Type Parameter name Description
Int64 num long value of the source number.
String targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
String The resulting string value of the operation.

int MoveRightWithPad(short num, int targetOperand)

RPG’s MOVE. Moves right an int2 (short) to an int4 (int) with pad.

int MoveRightWithPad(short num, int targetOperand)

Parameters

Type Parameter name Description
Int16 num short value of the source.
Int32 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int32 The resulting int value of the operation.

long MoveRightWithPad(short num, long targetOperand)

RPG’s MOVE. Moves right an int2 (short) to an int8 (long) with pad.

long MoveRightWithPad(short num, long targetOperand)

Parameters

Type Parameter name Description
Int16 num long value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

long MoveRightWithPad(int num, long targetOperand)

RPG’s MOVE. Moves right an int4 (int) to an int8 (long) with pad.

long MoveRightWithPad(int num, long targetOperand)

Parameters

Type Parameter name Description
Int32 num int value of the source.
Int64 targetOperand targetOperand represents what is currently in the target.

Returns

Type Description
Int64 The resulting long value of the operation.

short Sum(Int16[] array)

Returns the added values of each element in the array.

short Sum(Int16[] array)

Parameters

Type Parameter name Description
Int16[] array The array whose elements will be summed.

Returns

Type Description
Int16 The added value of every element in the array.

int Sum(Int32[] array)

Returns the added values of each element in the array.

int Sum(Int32[] array)

Parameters

Type Parameter name Description
Int32[] array The array whose elements will be summed.

Returns

Type Description
Int32 The added value of every element in the array.

long Sum(Int64[] array)

Returns the added values of each element in the array.

long Sum(Int64[] array)

Parameters

Type Parameter name Description
Int64[] array The array whose elements will be summed.

Returns

Type Description
Int64 The added value of every element in the array.

bool TestTime(short num, DateTimeDataKind kind, DateTimeFormat format)

Tests whether a short contains a valid date/time/timestamp value.

bool TestTime(short num, DateTimeDataKind kind, DateTimeFormat format)

Parameters

Type Parameter name Description
Int16 num The short number to test.
DateTimeDataKind kind whether the number represents a date, time, or timestamp.
DateTimeFormat format The date/time/timestamp format in which the number is.

Returns

Type Description
Boolean True if the number represents a valid date/time/timestamp value in the given format. False otherwise.

bool TestTime(int num, DateTimeDataKind kind, DateTimeFormat format)

Tests whether an int number contains a valid date/time/timestamp value.

bool TestTime(int num, DateTimeDataKind kind, DateTimeFormat format)

Parameters

Type Parameter name Description
Int32 num The int number to test.
DateTimeDataKind kind whether the number represents a date, time, or timestamp.
DateTimeFormat format The date/time/timestamp format in which the number is.

Returns

Type Description
Boolean True if the number represents a valid date/time/timestamp value in the given format. False otherwise.

bool TestTime(long num, DateTimeDataKind kind, DateTimeFormat format)

Tests whether a long number contains a valid date/time/timestamp value.

bool TestTime(long num, DateTimeDataKind kind, DateTimeFormat format)

Parameters

Type Parameter name Description
Int64 num The long number to test.
DateTimeDataKind kind whether the number represents a date, time, or timestamp.
DateTimeFormat format The date/time/timestamp format in which the number is.

Returns

Type Description
Boolean True if the number represents a valid date/time/timestamp value in the given format. False otherwise.

DateTime ToDate(int source, DateTimeFormat format)

ToDate summary.

DateTime ToDate(int source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int32 source ToDate source param.
DateTimeFormat format ToDate format param.

Returns

Type Description
DateTime ToDate returns.

DateTime ToDate(short source, DateTimeFormat format)

ToDate summary.

DateTime ToDate(short source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int16 source ToDate source param.
DateTimeFormat format ToDate format param.

Returns

Type Description
DateTime returns param.

DateTime ToDate(long source, DateTimeFormat format)

ToDate summary.

DateTime ToDate(long source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int64 source ToDate source param.
DateTimeFormat format ToDate format param.

Returns

Type Description
DateTime ToDate returns.

decimal ToFixedDecimal(int num, int digits, int decimals)

Adjusts the digits and decimal positions of a fixed decimal number using Away From Zero rounding.

decimal ToFixedDecimal(int num, int digits, int decimals)

Parameters

Type Parameter name Description
Int32 num The decimal number to round up.
Int32 digits The desired number of digits.
Int32 decimals The desired number of decimal positions.

Returns

Type Description
Decimal The decimal equivalent of num, adjusted to the given number of digits and decimal positions..

decimal ToFixedDecimalRounded(int num, int digits, int decimals)

Adjusts the digits and decimal positions of a fixed decimal number using Away From Zero rounding.

decimal ToFixedDecimalRounded(int num, int digits, int decimals)

Parameters

Type Parameter name Description
Int32 num The decimal number to round up.
Int32 digits The desired number of digits.
Int32 decimals The desired number of decimal positions.

Returns

Type Description
Decimal The decimal equivalent of num, adjusted to the given number of digits and decimal positions..

string ToStringByte(byte num)

Returns as a string the char equivalent of a byte number.

string ToStringByte(byte num)

Parameters

Type Parameter name Description
Byte num The short number to convert.

Returns

Type Description
String The string resulting from interpreting the byte value as a character.

string ToStringInt(int num)

Returns as a string the char equivalent of a int number.

string ToStringInt(int num)

Parameters

Type Parameter name Description
Int32 num The int number to convert.

Returns

Type Description
String The string resulting from interpreting the bytes of the int value as characters.

string ToStringLong(long num)

Returns as a string the char equivalentof a long number.

string ToStringLong(long num)

Parameters

Type Parameter name Description
Int64 num The long number to convert.

Returns

Type Description
String The string resulting from interpreting the bytes of the long value as characters.

string ToStringShort(short num)

Returns as a string the char equivalent of a short number.

string ToStringShort(short num)

Parameters

Type Parameter name Description
Int16 num The short number to convert.

Returns

Type Description
String The string resulting from interpreting the bytes of the short value as characters.

DateTime ToTime(int source, DateTimeFormat format)

ToTime summary.

DateTime ToTime(int source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int32 source ToTime source param.
DateTimeFormat format ToTime format param.

Returns

Type Description
DateTime ToTime returns.

DateTime ToTime(short source, DateTimeFormat format)

ToTime summary.

DateTime ToTime(short source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int16 source ToTime source param.
DateTimeFormat format ToTime format param.

Returns

Type Description
DateTime ToTime returns.

DateTime ToTime(long source, DateTimeFormat format)

ToTime summary.

DateTime ToTime(long source, DateTimeFormat format)

Parameters

Type Parameter name Description
Int64 source ToTime source param.
DateTimeFormat format ToTime format param.

Returns

Type Description
DateTime ToTime returns.

DateTime ToTimestamp(int source)

ToTimestamp summary.

DateTime ToTimestamp(int source)

Parameters

Type Parameter name Description
Int32 source ToTimestamp sourceparam.

Returns

Type Description
DateTime ToTimestamp returns.

DateTime ToTimestamp(short source)

ToTimestamp summary.

DateTime ToTimestamp(short source)

Parameters

Type Parameter name Description
Int16 source ToTimestamp source param.

Returns

Type Description
DateTime ToTimestamp returns.

DateTime ToTimestamp(long source)

ToTimestamp summary.

DateTime ToTimestamp(long source)

Parameters

Type Parameter name Description
Int64 source ToTimestamp source param.

Returns

Type Description
DateTime ToTimestamp returns