chromium/google_apis/common/time_util.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "google_apis/common/time_util.h"

#include <string>
#include <string_view>
#include <vector>

#include "base/i18n/time_formatting.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"

namespace google_apis {
namespace util {

namespace {

constexpr char kNullTimeString[] =;

// Sugar for calling the base:: method with the handling we always desire.
std::vector<std::string_view> SplitStringPiece(std::string_view input,
                                               std::string_view separators) {}

}  // namespace

bool GetTimeFromString(std::string_view raw_value, base::Time* parsed_time) {}

bool GetDateOnlyFromString(std::string_view raw_value,
                           base::Time* parsed_time) {}

std::string FormatTimeAsString(const base::Time& time) {}

std::string FormatTimeAsStringLocaltime(const base::Time& time) {}

}  // namespace util
}  // namespace google_apis