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:
parent
2a41bff329
commit
3866e0d4d4
9 changed files with 54 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue