DAW JSON Link
Classes | Namespaces | Functions
daw_json_parse_iso8601_utils.h File Reference
#include "daw_json_parse_digit.h"
#include <daw/daw_arith_traits.h>
#include <daw/daw_string_view.h>
#include <chrono>
#include <ciso646>
#include <cstdint>

Go to the source code of this file.

Classes

struct  daw::json::datetime::date_parts
 
struct  daw::json::datetime::time_parts
 
struct  daw::json::datetime::ymdhms
 

Namespaces

 daw
 
 daw::json
 
 daw::json::datetime
 
 daw::json::parse_utils
 

Functions

template<typename Clock = std::chrono::system_clock, typename Duration = std::chrono::milliseconds>
constexpr std::chrono::time_point< Clock, Duration > daw::json::datetime::civil_to_time_point (std::int_least32_t yr, std::uint_least32_t mo, std::uint_least32_t dy, std::uint_least32_t hr, std::uint_least32_t mn, std::uint_least32_t se, std::uint_least32_t ms)
 
constexpr bool daw::json::parse_utils::is_number (char c)
 
constexpr std::string_view daw::json::datetime::month_short_name (unsigned m)
 
template<typename Bounds , std::ptrdiff_t Ex>
constexpr std::chrono::time_point< std::chrono::system_clock, std::chrono::milliseconds > daw::json::datetime::parse_iso8601_timestamp (daw::basic_string_view< char, Bounds, Ex > ts)
 
template<typename Bounds , std::ptrdiff_t Ex>
constexpr date_parts daw::json::datetime::parse_iso_8601_date (daw::basic_string_view< char, Bounds, Ex > timestamp_str)
 
template<typename Bounds , std::ptrdiff_t Ex>
constexpr time_parts daw::json::datetime::parse_iso_8601_time (daw::basic_string_view< char, Bounds, Ex > timestamp_str)
 
constexpr unsigned daw::json::datetime::parse_short_month (std::string_view ts)
 
template<typename Result , std::size_t count>
constexpr Result daw::json::parse_utils::parse_unsigned (char const *digit_str)
 
template<typename Result >
constexpr Result daw::json::parse_utils::parse_unsigned2 (char const *digit_str)
 
template<typename Duration >
constexpr std::string_view daw::json::datetime::short_day_of_week (std::chrono::time_point< std::chrono::system_clock, Duration > tp)
 
template<typename Clock , typename Duration >
constexpr ymdhms daw::json::datetime::time_point_to_civil (std::chrono::time_point< Clock, Duration > const &tp)