diff options
Diffstat (limited to 'Libraries/LibCore/DateTime.h')
-rw-r--r-- | Libraries/LibCore/DateTime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibCore/DateTime.h b/Libraries/LibCore/DateTime.h index a27a04c2d9..56a9b17680 100644 --- a/Libraries/LibCore/DateTime.h +++ b/Libraries/LibCore/DateTime.h @@ -26,7 +26,7 @@ #pragma once -#include <AK/Forward.h> +#include <AK/String.h> #include <time.h> namespace Core { @@ -43,7 +43,7 @@ public: unsigned minute() const { return m_minute; } unsigned second() const { return m_second; } - String to_string() const; + String to_string(const String& format = "%Y-%m-%d %H:%M:%S") const; static DateTime now(); static DateTime from_timestamp(time_t); |