OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "printing/printed_document.h" | 5 #include "printing/printed_document.h" |
6 | 6 |
7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 | 10 |
11 using base::Time; | 11 using base::Time; |
12 | 12 |
13 namespace printing { | 13 namespace printing { |
14 | 14 |
15 void PrintedDocument::Immutable::SetDocumentDate() { | 15 void PrintedDocument::Immutable::SetDocumentDate() { |
16 Time now = Time::Now(); | 16 Time now = Time::Now(); |
17 date_ = WideToUTF16Hack(base::TimeFormatShortDateNumeric(now)); | 17 date_ = base::TimeFormatShortDateNumeric(now); |
18 time_ = WideToUTF16Hack(base::TimeFormatTimeOfDay(now)); | 18 time_ = base::TimeFormatTimeOfDay(now); |
19 } | 19 } |
20 | 20 |
21 } // namespace printing | 21 } // namespace printing |
OLD | NEW |