ICU 4.8.1.1
4.8.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
utmscale.h
Go to the documentation of this file.
1
/*
2
*******************************************************************************
3
* Copyright (C) 2004 - 2008, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
*******************************************************************************
6
*/
7
8
#ifndef UTMSCALE_H
9
#define UTMSCALE_H
10
11
#include "
unicode/utypes.h
"
12
13
#if !UCONFIG_NO_FORMATTING
14
202
typedef
enum
UDateTimeScale
{
209
UDTS_JAVA_TIME
= 0,
210
217
UDTS_UNIX_TIME
,
218
225
UDTS_ICU4C_TIME
,
226
233
UDTS_WINDOWS_FILE_TIME
,
234
241
UDTS_DOTNET_DATE_TIME
,
242
249
UDTS_MAC_OLD_TIME
,
250
257
UDTS_MAC_TIME
,
258
265
UDTS_EXCEL_TIME
,
266
273
UDTS_DB2_TIME
,
274
282
UDTS_UNIX_MICROSECONDS_TIME
,
283
287
UDTS_MAX_SCALE
288
}
UDateTimeScale
;
289
298
typedef
enum
UTimeScaleValue
{
307
UTSV_UNITS_VALUE
= 0,
308
317
UTSV_EPOCH_OFFSET_VALUE
=1,
318
327
UTSV_FROM_MIN_VALUE
=2,
328
337
UTSV_FROM_MAX_VALUE
=3,
338
347
UTSV_TO_MIN_VALUE
=4,
348
357
UTSV_TO_MAX_VALUE
=5,
358
359
#ifndef U_HIDE_INTERNAL_API
360
371
UTSV_EPOCH_OFFSET_PLUS_1_VALUE
=6,
372
384
UTSV_EPOCH_OFFSET_MINUS_1_VALUE
=7,
385
396
UTSV_UNITS_ROUND_VALUE
=8,
397
408
UTSV_MIN_ROUND_VALUE
=9,
409
420
UTSV_MAX_ROUND_VALUE
=10,
421
422
#endif
/* U_HIDE_INTERNAL_API */
423
429
UTSV_MAX_SCALE_VALUE
=11
430
431
}
UTimeScaleValue
;
432
443
U_STABLE
int64_t
U_EXPORT2
444
utmscale_getTimeScaleValue
(
UDateTimeScale
timeScale,
UTimeScaleValue
value,
UErrorCode
*status);
445
446
/* Conversion to 'universal time scale' */
447
459
U_STABLE
int64_t
U_EXPORT2
460
utmscale_fromInt64
(int64_t otherTime,
UDateTimeScale
timeScale,
UErrorCode
*status);
461
462
/* Conversion from 'universal time scale' */
463
475
U_STABLE
int64_t
U_EXPORT2
476
utmscale_toInt64
(int64_t universalTime,
UDateTimeScale
timeScale,
UErrorCode
*status);
477
478
#endif
/* #if !UCONFIG_NO_FORMATTING */
479
480
#endif
481
Generated on Wed Aug 5 2015 17:45:14 for ICU 4.8.1.1 by
1.8.1.2