Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 2.23 KB

data-converters.md

File metadata and controls

90 lines (50 loc) · 2.23 KB

Data Converters


base64Encoding

Applies Base64 encoding of supplied data.

Parameters

  • Raw data such as a binary buffer

Return Value

Base 64 encoded version of the input raw data.

base64Decoding

Applies Base64 decoding of supplied encloded data.

Parameters

  • Data in Base64 encoding

Return Value

Decodes version of the Base64 encoded input data.

longDay

Provides the long form of the day of week in the given locale, based in a numeric value in the range of 0 to 6.

Parameters

  • lang - Locale string (defaulted to gb-GB)
  • idx - Number in the range of 0-6 (optional on initial call, mandatory on second call.)

Return Value

String representing the long form of the day of week in the language of the given locale code.

longMonth

Provides the long form of the month of year in the given locale, based in a numeric value in the range of 0 to 11.

Parameters

  • lang - Locale string (defaulted to gb-GB)
  • idx - Number in the range of 0-11 (optional on initial call, mandatory on second call.)

Return Value

String representing the long form of the month of year in the language of the given locale code.

shortDay

Provides the short form of the day of week in the given locale, based in a numeric value in the range of 0 to 6.

Parameters

  • lang - Locale string (defaulted to gb-GB)
  • idx - Number in the range of 0-6 (optional on initial call, mandatory on second call.)

Return Value

String representing the short form of the day of week in the language of the given locale code.

shortMonth

Provides the short form of the month of year in the given locale, based in a numeric value in the range of 0 to 11.

Parameters

  • lang - Locale string (defaulted to gb-GB)
  • idx - Number in the range of 0-11 (optional on initial call, mandatory on second call.)

Return Value

String representing the short form of the month of year in the language of the given locale code.