• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "testing/fx_string_testhelpers.h"
6 
7 #include <iomanip>
8 #include <ios>
9 #include <string>
10 
operator <<(std::ostream & os,const CFX_DateTime & dt)11 std::ostream& operator<<(std::ostream& os, const CFX_DateTime& dt) {
12   os << dt.GetYear() << "-" << std::to_string(dt.GetMonth()) << "-"
13      << std::to_string(dt.GetDay()) << " " << std::to_string(dt.GetHour())
14      << ":" << std::to_string(dt.GetMinute()) << ":"
15      << std::to_string(dt.GetSecond()) << "."
16      << std::to_string(dt.GetMillisecond());
17   return os;
18 }
19