C++ boost get unix timestamp in UTC
<p>Hello I'm trying to get time elapsed since epoch using boost in UTC but it seems that microsec_clock::universal_time(); doesn't return UTC time, instead it returns time in timezone of PC.</p>

<p>How can I get current time in miliseconds in UTC using boost?</p>

<p>Here is my code that I'm using</p>

<pre><code>const long long unix_timestmap_now()
{ 
   ptime time_t_epoch(date(1970, 1, 1));
   ptime now = microsec_clock::universal_time();
   time_duration diff = now - time_t_epoch;
   return  diff.total_milliseconds();;
}
</code></pre>