# Daylight Savings / UTC Timezone Offset

**URL:** <https://forums.unrealengine.com/t/daylight-savings-utc-timezone-offset/608729>\
**Category:** C++\
**Tags:** unreal-engine, UE4, UE4-27, CPP, question\
**Created:** [July 19, 2022, 6:47pm UTC](https://forums.unrealengine.com/t/daylight-savings-utc-timezone-offset/608729 "2022-07-19T18:47:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ariveros327](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ariveros327/32/548075_2.png) [@ariveros327](https://forums.unrealengine.com/u/ariveros327)\
**Post date:** [July 19, 2022, 8:34pm UTC](https://forums.unrealengine.com/t/daylight-savings-utc-timezone-offset/608729/2 "2022-07-19T20:34:17Z")

</div>

Hi , @jo.codegirl, you can get the computer’s datetime with FDateTime:Now(). Also, if you want to have the difference between your pc’s time and the utcDatetime you can do this

```
int utcnow = FDateTime::UtcNow().GetHour();
int now = FDateTime::Now().GetHour();
int diff = now - utcnow;

```

and get the difference in hours. Remember use #include “Misc/DateTime.h”

---

_[View the full topic](https://forums.unrealengine.com/t/daylight-savings-utc-timezone-offset/608729)._
