diff options
Diffstat (limited to 'Userland/Libraries/LibCore/DateTime.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/DateTime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/DateTime.cpp b/Userland/Libraries/LibCore/DateTime.cpp index dce43d57b5..3a7fdfe345 100644 --- a/Userland/Libraries/LibCore/DateTime.cpp +++ b/Userland/Libraries/LibCore/DateTime.cpp @@ -83,7 +83,7 @@ void DateTime::set_time(int year, int month, int day, int hour, int minute, int m_second = tm.tm_sec; } -String DateTime::to_string(const String& format) const +String DateTime::to_string(StringView format) const { const char wday_short_names[7][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" @@ -261,7 +261,7 @@ String DateTime::to_string(const String& format) const return builder.build(); } -Optional<DateTime> DateTime::parse(const String& format, const String& string) +Optional<DateTime> DateTime::parse(StringView format, const String& string) { unsigned format_pos = 0; unsigned string_pos = 0; |