1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibCore: Move LogStream::operator<< overloads into cpp files

This commit is contained in:
Andreas Kling 2020-02-15 00:44:02 +01:00
parent 2a41bff329
commit 3866e0d4d4
9 changed files with 54 additions and 13 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/String.h>
#include <LibCore/DateTime.h>
#include <sys/time.h>
#include <time.h>
@ -55,4 +56,9 @@ String DateTime::to_string() const
return String::format("%04u-%02u-%02u %02u:%02u:%02u", m_year, m_month, m_day, m_hour, m_minute, m_day);
}
const LogStream& operator<<(const LogStream& stream, const DateTime& value)
{
return stream << value.to_string();
}
}