Class UnlocalizedDateTimeFormat
UnlocalizedDateTimeFormat is a utility class to convert Date objects to an unlocalized, time-zone
independent, character-set-independent string format and vice versa.
This format is intended for file import/export and data transfer between systems as an independent data format.
This format is explicitly not to use for GUI-clients as they usually should attend localization, time-zone and so on.
The format is more or less like a SimpleDateFormat format of "Gyyyy-MM-dd HH:mm:ss.SSS" with an era of "-"
for BC and none era for AD.
This format is optimized this single format and for speed, so it is much faster than the SimpleDateFormat.
An instance of this UnlocalizedDateTimeFormat can be used in several threads concurrently.
- Author:
- agz
-
Method Summary
-
Method Details
-
format
- Parameters:
date-Dateto format- Returns:
- unlocalized string
- See Also:
-
parse
Parses the specified unlocalized string to aDate. The specified unlocalized string must not benull.- Parameters:
unlocalizedString- unlocalized string to parse- Returns:
Date- Throws:
ParseException- if the specified string is invalid- See Also:
-