acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
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
12
inline
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
26
CLASS_DECL_ACME struct ::tm * tm_struct(struct ::tm * ptm, const ::posix_time & posixtime,
const
class ::time & timeshift = {});
27
28
29
CLASS_DECL_ACME
void
copy(
::earth::gregorian_time
* ptime,
const
struct ::tm * ptm, ::i64 iNanosecond = 0);
30
31
32
CLASS_DECL_ACME
void
copy(struct ::tm * ptm, const ::earth::gregorian_time * ptime);
33
34
35
CLASS_DECL_ACME
struct
tm * GetZoneTm(
struct
tm * ptm, const ::earth::zone_time & zonetime);
36
37
38
CLASS_DECL_ACME
void
copy(
struct
timespec * ptimespec,
const
class ::time * ptime);
39
40
41
CLASS_DECL_ACME
void
copy(class ::time * ptime,
const
struct
timespec * ptimespec);
42
43
44
CLASS_DECL_ACME time_t portable_timegm_threadsafe(
const
struct
tm *tm);
45
46
47
earth::gregorian_time
Definition
earth_gregorian_time.h:15
time
Definition
aaa_time.h:13
operating_system
shared_posix
time1.h
Generated by
1.17.0