godot/core/os/time.cpp

/**************************************************************************/
/*  time.cpp                                                              */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "time.h"

#include "core/os/os.h"

#define UNIX_EPOCH_YEAR_AD
#define SECONDS_PER_DAY
#define IS_LEAP_YEAR(year)
#define YEAR_SIZE(year)

#define YEAR_KEY
#define MONTH_KEY
#define DAY_KEY
#define WEEKDAY_KEY
#define HOUR_KEY
#define MINUTE_KEY
#define SECOND_KEY
#define DST_KEY

// Table of number of days in each month (for regular year and leap year).
static const uint8_t MONTH_DAYS_TABLE[2][12] =;

#define UNIX_TIME_TO_HMS

#define UNIX_TIME_TO_YMD

#define VALIDATE_YMDHMS(ret)

#define YMD_TO_DAY_NUMBER

#define PARSE_ISO8601_STRING(ret)

#define EXTRACT_FROM_DICTIONARY

Time *Time::singleton =;

Time *Time::get_singleton() {}

Dictionary Time::get_datetime_dict_from_unix_time(int64_t p_unix_time_val) const {}

Dictionary Time::get_date_dict_from_unix_time(int64_t p_unix_time_val) const {}

Dictionary Time::get_time_dict_from_unix_time(int64_t p_unix_time_val) const {}

String Time::get_datetime_string_from_unix_time(int64_t p_unix_time_val, bool p_use_space) const {}

String Time::get_date_string_from_unix_time(int64_t p_unix_time_val) const {}

String Time::get_time_string_from_unix_time(int64_t p_unix_time_val) const {}

Dictionary Time::get_datetime_dict_from_datetime_string(const String &p_datetime, bool p_weekday) const {}

String Time::get_datetime_string_from_datetime_dict(const Dictionary &p_datetime, bool p_use_space) const {}

int64_t Time::get_unix_time_from_datetime_dict(const Dictionary &p_datetime) const {}

int64_t Time::get_unix_time_from_datetime_string(const String &p_datetime) const {}

String Time::get_offset_string_from_offset_minutes(int64_t p_offset_minutes) const {}

Dictionary Time::get_datetime_dict_from_system(bool p_utc) const {}

Dictionary Time::get_date_dict_from_system(bool p_utc) const {}

Dictionary Time::get_time_dict_from_system(bool p_utc) const {}

String Time::get_datetime_string_from_system(bool p_utc, bool p_use_space) const {}

String Time::get_date_string_from_system(bool p_utc) const {}

String Time::get_time_string_from_system(bool p_utc) const {}

Dictionary Time::get_time_zone_from_system() const {}

double Time::get_unix_time_from_system() const {}

uint64_t Time::get_ticks_msec() const {}

uint64_t Time::get_ticks_usec() const {}

void Time::_bind_methods() {}

Time::Time() {}

Time::~Time() {}