summaryrefslogblamecommitdiffstats
path: root/src/common/time_zone.h
blob: 9f5939ca50ce3081d124122686cd2e6eb9cd1fe1 (plain) (tree)
1
2
3
4
5
6
7





                                            
                 




                                         
                                               

                                                                          
                                                             

                               
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <chrono>
#include <string>

namespace Common::TimeZone {

/// Gets the default timezone, i.e. "GMT"
[[nodiscard]] std::string GetDefaultTimeZone();

/// Gets the offset of the current timezone (from the default), in seconds
[[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();

} // namespace Common::TimeZone