summaryrefslogtreecommitdiffstats
path: root/printing/printed_document_posix.cc
blob: 33c02648b73db81f1c2d0c572498c18b2d25550a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "printing/printed_document.h"

#include "base/i18n/time_formatting.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"

using base::Time;

namespace printing {

void PrintedDocument::Immutable::SetDocumentDate() {
  Time now = Time::Now();
  date_ = base::TimeFormatShortDateNumeric(now);
  time_ = base::TimeFormatTimeOfDay(now);
}

}  // namespace printing