// Copyright (c) 2006-2008 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.
// Time -----------------------------------------------------------------------
// static
Time Time::FromTimeT(time_t tt) {
if (tt == 0) return Time(); // Preserve 0 so we can tell it doesn't exist. return Time((tt * kMicrosecondsPerSecond) + kTimeTToMicrosecondsOffset);
}
time_t Time::ToTimeT() const {
if (us_ == 0) return0; // Preserve 0 so we can tell it doesn't exist. return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.