acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
time1.h
1//
2// Created by camilo on 2020-12-05. <3tbs!!
3//
4#pragma once
5
6
7#include "acme/prototype/datetime/earth_time_shift.h"
8#include <time.h>
9
10
11
12inline timespec __timespec(const class time & time)
13{
14
15 timespec timespec;
16
17 timespec.tv_sec = time.m_iSecond;
18
19 timespec.tv_nsec = (long)time.m_iNanosecond;
20
21 return timespec;
22
23}
24
25
26CLASS_DECL_ACME struct ::tm * tm_struct(struct ::tm * ptm, const ::posix_time & posixtime, const class ::time & timeshift = {});
27
28
29CLASS_DECL_ACME void copy(::earth::gregorian_time * ptime, const struct ::tm * ptm, ::i64 iNanosecond = 0);
30
31
32CLASS_DECL_ACME void copy(struct ::tm * ptm, const ::earth::gregorian_time * ptime);
33
34
35CLASS_DECL_ACME struct tm * GetZoneTm(struct tm * ptm, const ::earth::zone_time & zonetime);
36
37
38CLASS_DECL_ACME void copy(struct timespec * ptimespec, const class ::time * ptime);
39
40
41CLASS_DECL_ACME void copy(class ::time * ptime, const struct timespec * ptimespec);
42
43
44CLASS_DECL_ACME time_t portable_timegm_threadsafe(const struct tm *tm);
45
46
47
Definition earth_gregorian_time.h:15
Definition aaa_time.h:13