00001
00002
00003
00004
00005
00006
00007
00008 #ifndef UTMSCALE_H
00009 #define UTMSCALE_H
00010
00011 #include "unicode/utypes.h"
00012
00013 #if !UCONFIG_NO_FORMATTING
00014
00202 typedef enum UDateTimeScale {
00209 UDTS_JAVA_TIME = 0,
00210
00217 UDTS_UNIX_TIME,
00218
00225 UDTS_ICU4C_TIME,
00226
00233 UDTS_WINDOWS_FILE_TIME,
00234
00241 UDTS_DOTNET_DATE_TIME,
00242
00249 UDTS_MAC_OLD_TIME,
00250
00257 UDTS_MAC_TIME,
00258
00265 UDTS_EXCEL_TIME,
00266
00273 UDTS_DB2_TIME,
00274
00282 UDTS_UNIX_MICROSECONDS_TIME,
00283
00287 UDTS_MAX_SCALE
00288 } UDateTimeScale;
00289
00298 typedef enum UTimeScaleValue {
00307 UTSV_UNITS_VALUE = 0,
00308
00317 UTSV_EPOCH_OFFSET_VALUE=1,
00318
00327 UTSV_FROM_MIN_VALUE=2,
00328
00337 UTSV_FROM_MAX_VALUE=3,
00338
00347 UTSV_TO_MIN_VALUE=4,
00348
00357 UTSV_TO_MAX_VALUE=5,
00358
00359 #ifndef U_HIDE_INTERNAL_API
00360
00371 UTSV_EPOCH_OFFSET_PLUS_1_VALUE=6,
00372
00384 UTSV_EPOCH_OFFSET_MINUS_1_VALUE=7,
00385
00396 UTSV_UNITS_ROUND_VALUE=8,
00397
00408 UTSV_MIN_ROUND_VALUE=9,
00409
00420 UTSV_MAX_ROUND_VALUE=10,
00421
00422 #endif
00423
00429 UTSV_MAX_SCALE_VALUE=11
00430
00431 } UTimeScaleValue;
00432
00443 U_STABLE int64_t U_EXPORT2
00444 utmscale_getTimeScaleValue(UDateTimeScale timeScale, UTimeScaleValue value, UErrorCode *status);
00445
00446
00447
00459 U_STABLE int64_t U_EXPORT2
00460 utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status);
00461
00462
00463
00475 U_STABLE int64_t U_EXPORT2
00476 utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status);
00477
00478 #endif
00479
00480 #endif
00481