Package com.epam.fix.message
Class HighPrecisionDateTimeParsers
java.lang.Object
com.epam.fix.message.HighPrecisionDateTimeParsers
Helper class for FIX date and time formats.
Provides ability for parsing different types of date/time values from the buffer of bytes. It is also possible to work with high precision values: micro- and nanoseconds.
- Author:
- Liubov_Efremova
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalTimeparseLocalMktTime(byte[] buffer, int offset, int count) Parses theLocalMktTimevalue frombuffer.static LocalTimeparseTimeOnly(byte[] buffer) Parses theTimeOnlyvalue frombuffer.static LocalTimeparseTimeOnly(byte[] buffer, int offset, int count) Parses theTimeOnlyvalue frombuffer.static LocalDateTimeparseTimestamp(byte[] buffer) Parses theTimestampvalue frombuffertodateTime.static LocalDateTimeparseTimestamp(byte[] buffer, int offset, int count) Parses theTimestampvalue frombuffertodateTime.static OffsetTimeparseTZTimeOnly(byte[] buffer) Parses theTZTimeOnlyvalue frombuffer.static OffsetTimeparseTZTimeOnly(byte[] buffer, int offset, int count) Parses theTZTimeOnlyvalue frombuffer.static OffsetDateTimeparseTZTimestamp(byte[] buffer) Parses theTZTimestampvalue frombuffer.static OffsetDateTimeparseTZTimestamp(byte[] buffer, int offset, int count) Parses theTZTimestampvalue frombuffer.
-
Field Details
-
LOCAL_ZONE_OFFSET
-
-
Method Details
-
parseTimeOnly
Parses theTimeOnlyvalue frombuffer. The format forTimeOnlyis HH:MM:SS[.sss][sss][sss]- Parameters:
buffer- the buffer of bytes- Returns:
- the local time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTimeOnly
Parses theTimeOnlyvalue frombuffer. The format forTimeOnlyis HH:MM:SS[.sss][sss][sss]- Parameters:
buffer- the buffer of bytesoffset- the initial offsetcount- the length- Returns:
- the local time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseLocalMktTime
Parses theLocalMktTimevalue frombuffer. The format forLocalMktTimeis HH:MM:SS- Parameters:
buffer- the buffer of bytesoffset- the initial offset- Returns:
- the local time structured from the given buffer
- Throws:
IllegalArgumentException
-
parseTZTimeOnly
Parses theTZTimeOnlyvalue frombuffer. The format forTZTimeOnlyis HH:MM[:SS][.sss][sss][sss][Z | [ + | - hh[:mm]]]- Parameters:
buffer- the buffer of bytes- Returns:
- the offset time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTZTimeOnly
Parses theTZTimeOnlyvalue frombuffer. The format forTZTimeOnlyis HH:MM[:SS][.sss][sss][sss][Z | [ + | - hh[:mm]]]- Parameters:
buffer- the buffer of bytesoffset- the initial offsetcount- the length- Returns:
- the offset time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTimestamp
Parses theTimestampvalue frombuffertodateTime. The format forTimestampis YYYYMMDD-HH:MM:SS[.sss][sss][sss].- Parameters:
buffer- the buffer of bytes- Returns:
- the local date time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTimestamp
Parses theTimestampvalue frombuffertodateTime. The format forTimestampis YYYYMMDD-HH:MM:SS[.sss][sss][sss].- Parameters:
buffer- the buffer of bytesoffset- the initial offsetcount- the length- Returns:
- the local date time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTZTimestamp
Parses theTZTimestampvalue frombuffer. The format forTZTimestampis YYYYMMDD-HH:MM[:SS][.sss][sss][sss][Z | [ + | - hh[:mm]]]- Parameters:
buffer- the buffer of bytes- Returns:
- the offset time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-
parseTZTimestamp
Parses theTZTimestampvalue frombuffer. The format forTZTimestampis YYYYMMDD-HH:MM[:SS][.sss][sss][sss][Z | [ + | - hh[:mm]]]- Parameters:
buffer- the buffer of bytesoffset- the initial offsetcount- the length- Returns:
- the offset time structured from the given buffer
In contrast to
Calendarsupports nanoseconds precision. - Throws:
IllegalArgumentException
-