LeviLamina
Loading...
Searching...
No Matches
DateManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
9public:
10 // DateManager inner types define
11 enum class TimeZoneType : int {
12 Utc = 0,
13 Local = 1,
14 };
15
16public:
17 // member variables
18 // NOLINTBEGIN
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 DateManager& operator=(DateManager const&);
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 0
37 virtual ~DateManager() /*override*/ = default;
38
39 // vIndex: 1
40 virtual int64 _getUnixTime();
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static int
47 _parseTimeZone(char const* str, uint64 len, ::DateManager::TimeZoneType* type, int* hours, int* minutes);
48
49 MCAPI static ::std::string getCurrentTimestampFileName();
50
51 MCAPI static bool toDateTime(
52 ::std::string const& strTime,
53 ::tm* result,
54 ::DateManager::TimeZoneType* resultType,
55 int* resultTimeZoneMinutes
56 );
57
58 MCAPI static int64 toEpochTime(::tm const* dateTime, ::DateManager::TimeZoneType inputType);
59
60 MCAPI static ::std::string
61 toString(::tm const& time, ::std::string const& format, ::std::optional<::std::locale> const& locale);
62
63 MCAPI static ::std::string toString_DateTime(::tm const& time, ::DateManager::TimeZoneType outputType);
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75
76 // NOLINTEND
77};
Definition EnableNonOwnerReferences.h:7
Definition DateManager.h:8
Definition Alias.h:14