Boost C++ Libraries: Ticket #3803: How to use dynamic_local_time_adjustor ? https://svn.boost.org/trac10/ticket/3803 <p> I need to convert Localtime value to UTC. <a class="missing wiki">LocalTime</a> values are loaded at runtime, so i am not able to use static_local_time_adjustor class. </p> <p> Seems like dynamic_local_time_adjustor is designed for this goal. But how to use it ? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3803 Trac 1.4.3 Steven Watanabe Wed, 30 Dec 2009 16:46:50 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3803#comment:1 https://svn.boost.org/trac10/ticket/3803#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">az_sw_dude</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">date_time</span> </li> </ul> Ticket Andrey Semashev Wed, 09 Jun 2010 18:37:33 GMT status, type, severity changed; resolution set https://svn.boost.org/trac10/ticket/3803#comment:2 https://svn.boost.org/trac10/ticket/3803#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Not Applicable</span> </li> </ul> <p> Honestly, I have only a slightest idea. It looks like the class is intended to be used to generate local times that respect DST changes. It seems, its major difference from static_local_time_adjustor is that you can specify the base offset from UTC to your local time in the constructor rather than as a part of template parameters. </p> <p> In order to use it you can specify the time type and the DST changing policy as its template parameters. The latter can have state and should implement the dst_offset function that will return the DST shift. </p> <p> If you have further questions, you can try asking on the mailing list. Perhaps someone more experienced will be able to help. </p> Ticket