class TimeZoneInfoService
Defined at line 41 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.h
Implementation of `fuchsia.intl.TimeZones`.
Provides information about time zones.
Usage example:
```
#include "src/lib/intl/time_zone_info/time_zone_info_service.h"
#include
<lib
/async-loop/cpp/loop.h>
#include
<lib
/async-loop/default.h>
#include
<lib
/sys/cpp/component_context.h>
async::Loop loop(
&kAsyncLoopConfigAttachToCurrentThread
);
auto context = sys::ComponentContext::CreateAndServeOutgoingDirectory();
auto tz_svc = TimeZoneInfoService::Create();
// Starts serving `fuchsia.intl.TimeZones`
context->outgoing()->AddPublicService(tz_svc->GetHandler());
tz_svc->Start();
loop.Run();
```
Public Methods
std::unique_ptr<TimeZoneInfoService> Create ()
Creates an instance of `TimeZoneInfoService`. The returned service instance is not ready to
respond to incoming requests until `Start()` is called.
Defined at line 246 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc
fidl::InterfaceRequestHandler<fuchsia::intl::TimeZones> GetHandler (async_dispatcher_t * dispatcher)
Returns the client-side handler for `fuchsia.intl.TimeZones`, based on either the
`dispatcher` that is passed in (e.g. for testing), or the default thread-local dispatcher if
`dispatcher` is omitted or null.
Ownership of `dispatcher` is retained by the caller.
Defined at line 250 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc
void Start ()
Performs required initialization of the service. This method *must* be called before the
service is added to the component's outgoing directory.
Defined at line 255 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc
void AbsoluteToCivilTime (fuchsia::intl::TimeZoneId time_zone, zx_time_t absolute_time, AbsoluteToCivilTimeCallback callback)
`fuchsia.intl.TimeZones`
Defined at line 320 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc
void CivilToAbsoluteTime (fuchsia::intl::CivilTime civil_time, fuchsia::intl::CivilToAbsoluteTimeOptions options, CivilToAbsoluteTimeCallback callback)
`fuchsia.intl.TimeZones`
Defined at line 343 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc
void GetTimeZoneInfo (fuchsia::intl::TimeZoneId time_zone_id, zx_time_t at_time, GetTimeZoneInfoCallback callback)
`fuchsia.intl.TimeZones`
Defined at line 438 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc