Blender V5.3
date_string.cc File Reference
#include <algorithm>
#include <array>
#include <ctime>
#include <string>
#include <fmt/format.h>
#include "BLT_date_string.hh"
#include "BLT_translation.hh"

Go to the source code of this file.

Classes

struct  blender::date_string::LocalePatterns

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::date_string

Functions

static const LocalePatterns & blender::date_string::get_locale_patterns (const StringRef locale_iso)
std::tm blender::date_string::localtime_safe (time_t time)
std::string blender::date_string::time (const std::tm &date_time, TimeFormat format=TimeFormat::H24)
std::string blender::date_string::date (const std::tm &date_time, StringRef locale_iso={}, DateFormat format=DateFormat::Default)
std::string blender::date_string::datetime (const std::tm &date_time, StringRef locale_iso={}, DateFormat date_format=DateFormat::Default, TimeFormat time_format=TimeFormat::H24, const std::tm *now=nullptr, StringRef today={}, StringRef yesterday={})