Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

utmscale.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 * Copyright (C) 2004, International Business Machines Corporation and
00004 * others. All Rights Reserved.
00005 *******************************************************************************
00006 */
00007 
00008 #ifndef UTMSCALE_H
00009 #define UTMSCALE_H
00010 
00011 #include "unicode/utypes.h"
00012 
00013 #if !UCONFIG_NO_FORMATTING
00014 
00195 typedef enum UDateTimeScale {
00202     UDTS_JAVA_TIME = 0,
00203 
00210     UDTS_UNIX_TIME,
00211     
00218     UDTS_ICU4C_TIME,
00219     
00226     UDTS_WINDOWS_FILE_TIME,
00227     
00234     UDTS_WINDOWS_DATE_TIME,
00235     
00242     UDTS_MAC_OLD_TIME,
00243     
00250     UDTS_MAC_TIME,
00251     
00258     UDTS_EXCEL_TIME,
00259     
00266     UDTS_DB2_TIME,
00267 
00273     UDTS_MAX_SCALE
00274 } UDateTimeScale;
00275 
00276 typedef enum UTimeScaleValue {
00285     UTSV_UNITS_VALUE = 0,
00286 
00295     UTSV_EPOCH_OFFSET_VALUE,
00296 
00305     UTSV_FROM_MIN_VALUE,
00306 
00315     UTSV_FROM_MAX_VALUE,
00316 
00325     UTSV_TO_MIN_VALUE,
00326 
00335     UTSV_TO_MAX_VALUE,
00336 
00348     UTSV_EPOCH_OFFSET_PLUS_1_VALUE,
00349 
00361     UTSV_EPOCH_OFFSET_MINUS_1_VALUE,
00362 
00373     UTSV_UNITS_ROUND_VALUE,
00374 
00385     UTSV_MIN_ROUND_VALUE,
00386 
00397     UTSV_MAX_ROUND_VALUE,
00398 
00408     UTSV_MAX_SCALE_VALUE
00409 } UTimeScaleValue;
00410 
00421 U_DRAFT int64_t U_EXPORT2
00422     utmscale_getTimeScaleValue(UDateTimeScale timeScale, UTimeScaleValue value, UErrorCode *status);
00423 
00424 /* Conversion to 'universal time scale' */
00425 
00437 U_DRAFT int64_t U_EXPORT2
00438     utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status);
00439 
00440 /* Conversion from 'universal time scale' */
00441 
00453 U_DRAFT int64_t U_EXPORT2
00454     utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status);
00455 
00456 #endif /* #if !UCONFIG_NO_FORMATTING */
00457 
00458 #endif
00459 

Generated on Tue Jul 26 00:40:03 2005 for ICU 3.2 by  doxygen 1.3.9.1