OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "printing/printed_document.h" | |
6 | |
7 #include "base/i18n/time_formatting.h" | |
8 #include "base/time.h" | |
9 #include "base/utf_string_conversions.h" | |
10 | |
11 using base::Time; | |
12 | |
13 namespace printing { | |
14 | |
15 void PrintedDocument::Immutable::SetDocumentDate() { | |
16 Time now = Time::Now(); | |
17 date_ = base::TimeFormatShortDateNumeric(now); | |
18 time_ = base::TimeFormatTimeOfDay(now); | |
19 } | |
20 | |
21 } // namespace printing | |
OLD | NEW |