LeviLamina
Loading...
Searching...
No Matches
DateHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/date_helper/DurationFields.h"
7#include "mc/util/date_helper/DurationFormat.h"
8
9// auto generated forward declare list
10// clang-format off
11class I18n;
12// clang-format on
13
14namespace DateHelper {
15// functions
16// NOLINTBEGIN
17MCNAPI_C ::std::string getDateAsFormattedString(int64 time);
18
19MCNAPI_C ::std::string getDurationAsString(
20 ::std::chrono::seconds duration,
21 ::DateHelper::DurationFields fields,
22 ::DateHelper::DurationFormat format,
23 ::I18n& i18n
24);
25
26MCNAPI_C ::std::pair<::std::string const, ::std::string const> getHourAndMinute(::std::string const& time);
27
28MCNAPI_C ::std::string getHowLongAgoAsString(int64 now, int64 time);
29
30MCNAPI_C ::std::string getHowLongAgoAsStringNarration(int64 now, int64 time);
31
32MCNAPI_C ::std::string getTimeAltFormatAsString(int64 time);
33
34MCNAPI_C ::std::string
35getTimeRemainingAsString(int64 now, int64 time, uint numberOfFields, bool addRemainingStr, bool isTelemetry);
36
37MCNAPI_C ::std::string getTimeSpecificFormatAsString(int64 now, int64 time);
38
39MCNAPI ::std::string getTimestampFileName(int64 const& timestamp);
40
41MCNAPI ::std::string removeSeconds(::std::string const& timeStr);
42
43MCNAPI_C ::std::string toLocalDate(int64 time);
44
45MCNAPI_C ::std::string toLocalShortDateTime(int64 time);
46
47MCNAPI_C ::std::string toLocalTime(int64 time);
48// NOLINTEND
49
50} // namespace DateHelper
Definition I18n.h:19