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
17#ifdef LL_PLAT_C
18MCNAPI ::std::string getDateAsFormattedString(int64 time);
19
20MCNAPI ::std::string getDurationAsString(
21 ::std::chrono::seconds duration,
22 ::DateHelper::DurationFields fields,
23 ::DateHelper::DurationFormat format,
24 ::I18n& i18n
25);
26
27MCNAPI ::std::pair<::std::string const, ::std::string const> getHourAndMinute(::std::string const& time);
28
29MCNAPI ::std::string getHowLongAgoAsString(int64 now, int64 time);
30
31MCNAPI ::std::string getHowLongAgoAsStringNarration(int64 now, int64 time);
32
33MCNAPI ::std::string getTimeAltFormatAsString(int64 time);
34
35MCNAPI ::std::string
36getTimeRemainingAsString(int64 now, int64 time, uint numberOfFields, bool addRemainingStr, bool isTelemetry);
37
38MCNAPI ::std::string getTimeSpecificFormatAsString(int64 now, int64 time);
39#endif
40
41MCNAPI ::std::string getTimestampFileName(int64 const& timestamp);
42
43MCNAPI ::std::string removeSeconds(::std::string const& timeStr);
44
45#ifdef LL_PLAT_C
46MCNAPI ::std::string toLocalDate(int64 time);
47
48MCNAPI ::std::string toLocalShortDateTime(int64 time);
49
50MCNAPI ::std::string toLocalTime(int64 time);
51#endif
52// NOLINTEND
53
54} // namespace DateHelper
Definition I18n.h:19