Datatypes

From UG

(Difference between revisions)
Jump to: navigation, search
(Other datatypes examples)
(Other datatypes examples)
Line 72: Line 72:
* Airline 3 Letter Numeric Code, possible value: 053
* Airline 3 Letter Numeric Code, possible value: 053
* Master Airway bill, possible value: 222-7824-5587
* Master Airway bill, possible value: 222-7824-5587
 +
 +
== Dates and Time ==
 +
 +
=== CT2 Date ===
 +
 +
This date must be in the following format:
 +
 +
<Day>-<Month(first 3 letters)>-<Year>
 +
 +
Example: 17-Jan-2010

Revision as of 01:27, 21 January 2010

Contents

Intro

Common CT2 datatypes - see:

Numbers

Integer

Examples:

  • 23
  • 1000
  • 0
  • -7896

Positive Integer

  • 23
  • 1000
  • 0

Decimal

Also called (floating-point numbers)

Examples:

  • 2.3
  • 1.0
  • 1.9083496
  • 100865.08E23

Strings

alphanumeric

The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.

Examples:

  • hgTF9087GggyYg
  • book
  • 897

Unicode

Examples:

  • อักษรไทย
  • русский алфавит

ASCII

Examples:

  • jhg&$&^*&@dceUH!
  • Hello!
  • #234
  • 12-34-98698690

http://en.wikipedia.org/wiki/ASCII

Other datatypes examples

Everything outside of common/standard is not a type really. It is a string of certain format/constraint.

Examples:

  • Airline 3 Letter Numeric Code, possible value: 053
  • Master Airway bill, possible value: 222-7824-5587

Dates and Time

CT2 Date

This date must be in the following format:

<Day>-<Month(first 3 letters)>-<Year>

Example: 17-Jan-2010

Personal tools