ICU 58.2  58.2
utmscale.h
Go to the documentation of this file.
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 * Copyright (C) 2004 - 2008, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 *******************************************************************************
8 */
9 
10 #ifndef UTMSCALE_H
11 #define UTMSCALE_H
12 
13 #include "unicode/utypes.h"
14 
15 #if !UCONFIG_NO_FORMATTING
16 
204 typedef enum UDateTimeScale {
212 
220 
228 
236 
244 
252 
260 
268 
276 
285 
291 
300 typedef enum UTimeScaleValue {
310 
320 
330 
340 
350 
360 
361 #ifndef U_HIDE_INTERNAL_API
362 
374 
387 
399 
411 
423 
424 #endif /* U_HIDE_INTERNAL_API */
425 
432 
434 
445 U_STABLE int64_t U_EXPORT2
447 
448 /* Conversion to 'universal time scale' */
449 
461 U_STABLE int64_t U_EXPORT2
462  utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status);
463 
464 /* Conversion from 'universal time scale' */
465 
477 U_STABLE int64_t U_EXPORT2
478  utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status);
479 
480 #endif /* #if !UCONFIG_NO_FORMATTING */
481 
482 #endif
483 
The constant used to select the minimum safe rounding value for a time scale.
Definition: utmscale.h:410
Used in the .NET framework's System.DateTime structure.
Definition: utmscale.h:243
Used in the JDK.
Definition: utmscale.h:211
Used in older Macintosh systems.
Definition: utmscale.h:251
Used in IUC4C.
Definition: utmscale.h:227
UDateTimeScale
UDateTimeScale values are used to specify the time scale used for conversion into or out if the unive...
Definition: utmscale.h:204
int64_t utmscale_getTimeScaleValue(UDateTimeScale timeScale, UTimeScaleValue value, UErrorCode *status)
Get a value associated with a particular time scale.
int64_t utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status)
Convert a datetime from the universal time scale to a int64_t in the given time scale.
Data is a long.
Definition: utmscale.h:284
Used in Excel.
Definition: utmscale.h:267
UTimeScaleValue
UTimeScaleValue values are used to specify the time scale values to utmscale_getTimeScaleValue.
Definition: utmscale.h:300
Used in newer Macintosh systems.
Definition: utmscale.h:259
Used on Unix systems.
Definition: utmscale.h:219
The constant used to select the units round value for a time scale.
Definition: utmscale.h:398
The constant used to select the minimum to value for a time scale.
Definition: utmscale.h:349
The first unused time scale value.
Definition: utmscale.h:289
The number of time scale values, in other words limit of this enum.
Definition: utmscale.h:431
The constant used to select the minimum from value for a time scale.
Definition: utmscale.h:329
The constant used to select the epoch plus one value for a time scale.
Definition: utmscale.h:373
The constant used to select the maximum from value for a time scale.
Definition: utmscale.h:339
The constant used to select the epoch plus one value for a time scale.
Definition: utmscale.h:386
The constant used to select the maximum to value for a time scale.
Definition: utmscale.h:359
The constant used to select the epoch offset value for a time scale.
Definition: utmscale.h:319
int64_t utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status)
Convert a int64_t datetime from the given time scale to the universal time scale. ...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:396
Used in DB2.
Definition: utmscale.h:275
Used in Windows for file times.
Definition: utmscale.h:235
Basic definitions for ICU, for both C and C++ APIs.
The constant used to select the units vale for a time scale.
Definition: utmscale.h:309
The constant used to select the maximum safe rounding value for a time scale.
Definition: utmscale.h:422
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:134