17 lines
422 B
C++
17 lines
422 B
C++
#pragma once
|
|
|
|
#include "engine/value.hpp"
|
|
|
|
#include <string>
|
|
|
|
namespace htab {
|
|
|
|
// Pure proleptic Gregorian calendar with serial 0 = 1899-12-30.
|
|
int ymd_to_serial(int year, int month, int day);
|
|
void serial_to_ymd(int serial, int& year, int& month, int& day);
|
|
void serial_to_hms(double serial, int& hour, int& minute, int& second);
|
|
|
|
std::string format_value(const Value& val, const std::string& fmt);
|
|
|
|
} // namespace htab
|