# cbLogGetPreferences()

Returns API preference settings for time stamped data, analog temperature data, and CJC temperature data. Returns the default values unless changed using cbLogSetPreferences().

## Function Prototype

C/C++

int cbLogGetPreferences(int* TimeFormat, int* TimeZone, int* Units)

Visual Basic

Function cbLogGetPreferences(ByRef TimeFormat&, ByRef TimeZone&, ByRef Units&) As Long

## Arguments

TimeFormat

Returns the time format used to display time stamp data. Set to one of the TimeFormat constants. Choices are:

0 = TIMEFORMAT_12HOUR. For example 2:32:51PM.
1 = TIMEFORMAT_24HOUR. For example 14:32:51.

TimeZone

Returns the time zone to store time stamp data. Set to one of the TimeZone constants. Choices are:

0 = TIMEZONE_LOCAL. Converts time stamped data to the local time zone on your computer.
1 = TIMEZONE_GMT. Leaves time stamped data in Greenwich Mean Time.

Units

Returns the unit to use for analog temperature data. This value is ignored if raw data values are logged. Set to one of the Units constants. Choices are:

0 = FAHRENHEIT
1 = CELSIUS
2 = KELVIN

## Returns

- Error code or 0 if no errors
- TimeFormat – Returns the format to apply to time stamped data from API functions that return time data.
- TimeZone – Returns the time zone to apply to time stamped data from API functions that return time data.
- Units – Returns the unit to use when converting temperature data from API functions that return temperature data.