Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
time.c File Reference
#include "arc/std/time.h"

Go to the source code of this file.

Functions

ARC_Time ARC_Time_CopyFromStructTmPtr (struct tm *time)
 copies the contents of a tm struct pointer into the ARC_Time type
 

Function Documentation

◆ ARC_Time_CopyFromStructTmPtr()

ARC_Time ARC_Time_CopyFromStructTmPtr ( struct tm * time)

copies the contents of a tm struct pointer into the ARC_Time type

Parameters
timethe struct tm type to copy
Returns
the contents of a struct tm as an ARC_Time

Definition at line 3 of file time.c.

3 {
4 return (ARC_Time){
5 time->tm_sec,
6 time->tm_min,
7 time->tm_hour,
8
9 time->tm_yday,
10 time->tm_mon,
11 time->tm_year,
12
13 time->tm_wday,
14 time->tm_mday,
15
16 time->tm_isdst
17 };
18}
the ARC_Time data structre based on time.h (mainly added to avoid having to type struct tm every time...
Definition time.h:27