summaryrefslogtreecommitdiff
path: root/include/erebos/time.h
blob: d8ff5b1457920a3ff31a79d06d6ad9695cdcc657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <chrono>
#include <string>

namespace erebos {

struct ZonedTime
{
	explicit ZonedTime(std::string);
	ZonedTime(std::chrono::system_clock::time_point t): time(t), zone(0) {}
	explicit operator std::string() const;

	static ZonedTime now();

	std::chrono::system_clock::time_point time;
	std::chrono::minutes zone; // zone offset
};

}