blob: 33c02648b73db81f1c2d0c572498c18b2d25550a [file] [log] [blame]
// 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