//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
*
* The %TimeZone class represents a time zone offset and figures out Daylight Saving Time (DST).
*
- * The form of time zone ID is "Area/Location". However, the specialized time zone IDs have the different form.@n
+ * The form of time zone ID is "Area/Location". @n
*
- * The IDs are defined in <a href="http://www.iana.org/time-zones" target="_blank">Time Zone Database</a>. @n
+ * However, the specialized time zone IDs have the different form, such as CST6CDT, EST5EDT and so on. @n
+ *
+ * For more information on IDs, refer <a href="http://www.iana.org/time-zones" target="_blank">Time Zone Database</a>. @n
*
* The supported time zone list depends on the device. Therefore, it must be checked by using LocaleManager::GetAvailableTimeZonesN().
*
*
@code
+#include <FBase.h>
+#include <FSystem.h>
#include <FLocales.h>
using namespace Tizen::Locales;
int dstSavings = timeZone.GetDstSavings();
// Gets the special time zone.
+ DateTime utcTime;
TimeZone timeZone2;
- Tizen::Locales::TimeZone::GetTimeZone(L"Europe/Zurich", timeZone2);
+ Tizen::System::SystemTime::GetCurrentTime(utcTime);
+ Tizen::Locales::TimeZone::GetTimeZone(L"Europe/Zurich", utcTime, timeZone2);
}
@endcode
*
*
* @param[in] rawOffset The base time zone offset to GMT in minutes
* @param[in] id The time zone ID
- * @remarks The form of time zone @c id is "Area/Location". @n For more information on IDs, refer <a href="http://www.iana.org/time-zones">here</a>. @n
+ * @remarks The form of time zone @c id is "Area/Location". @n For more information on IDs, refer <a href="http://www.iana.org/time-zones" target="_blank">here</a>. @n
* However, the supported time zone list depends on the device. Therefore, it must be checked before using this method.
* @see LocaleManager::GetAvailableTimeZonesN()
*/
* @param[in] startRule The DST starting rule
* @param[in] endRule The DST end rule
* @param[in] dstOffset The amount of time in minutes saved during DST
- * @remarks The form of time zone @c id is "Area/Location". @n For more information on IDs, refer <a href="http://www.iana.org/time-zones">here</a>. @n
+ * @remarks The form of time zone @c id is "Area/Location". @n For more information on IDs, refer <a href="http://www.iana.org/time-zones" target="_blank">here</a>. @n
* However, the supported time zone list depends on the device. Therefore, it must be checked before using this method.
* @see LocaleManager::GetAvailableTimeZonesN()
*/
* @endif
* @since 2.0
* @if OSPCOMPAT
- * @compatibility This method has compatibility issues with OSP compatibile applications. @n
+ * @compatibility This method has compatibility issues with OSP compatible applications. @n
* For more information, see @ref CompTimeZoneGetOffsetPage "here".
* @endif
*
* @endif
* @since 2.0
* @if OSPCOMPAT
- * @compatibility This method has compatibility issues with OSP compatibile applications. @n
+ * @compatibility This method has compatibility issues with OSP compatible applications. @n
* For more information, see @ref CompTimeZoneGetOffsetPage "here".
* @endif
*
* @return An error code
* @param[in] ticks The time ticks value @n
- * The value can be either GMT time or local wall time.
+ * The value is GMT time from starting day (Jan 1, 1.).
* @param[out] offset The offset between the local standard time and GMT, taking into consideration DST
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified @c ticks is invalid.
+ * @exception E_INVALID_ARG The specified @c ticks is invalid.
+ * @see Base::DateTime::GetTicks()
*/
result GetOffset(long long ticks, int& offset) const;
* @endif
* @since 2.0
* @if OSPCOMPAT
- * @compatibility This method has compatibility issues with OSP compatibile applications. @n
+ * @compatibility This method has compatibility issues with OSP compatible applications. @n
* For more information, see @ref CompTimeZoneGetTimeZonePage "here".
* @endif
*
* @endif
* @since 2.0
* @if OSPCOMPAT
- * @compatibility This method has compatibility issues with OSP compatibile applications. @n
+ * @compatibility This method has compatibility issues with OSP compatible applications. @n
* For more information, see @ref CompTimeZoneGetTimeZonePage "here".
* @endif
*