Looking for docs or example of using CTimeZoneApi |
Doesn't appear to have any static methods (non shoe up in C# VS Express) or a constructor so not sure how to use the class.
Am looking to convert utc date to user tz date.
Thanks.
Martin Zardecki
Wednesday, June 17, 2009
Sorry about the docs -- the documentation for that part of the API hasn't been written yet. You can access it through your instance of CPluginApi, and the specific method you want is CTZFromUTC ("Client Time Zone" from UTC):
DateTime utcdt = api.TimeZone.CTZFromUTC(ctzdt);
David Fullerton
Thursday, June 18, 2009
Exactly what I was looking for, thanks.
Martin Zardecki
Thursday, June 18, 2009
|