forked from ground/ground
first version of datetime lib
This commit is contained in:
18
libs/datetime/date_functions.h
Normal file
18
libs/datetime/date_functions.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#define _XOPEN_SOURCE // to make gcc happy lol
|
||||
|
||||
#include <groundext.h>
|
||||
#include <groundvm.h>
|
||||
#include <time.h>
|
||||
|
||||
GroundValue datetime_Now(GroundScope* scope, List args);
|
||||
GroundValue datetime_Format(GroundScope* scope, List args);
|
||||
GroundValue datetime_FromFormatted(GroundScope* scope, List args);
|
||||
GroundValue datetime_ToISO8601UTC(GroundScope* scope, List args);
|
||||
GroundValue datetime_ToISO8601Local(GroundScope* scope, List args);
|
||||
GroundValue datetime_FromEpochLocal(GroundScope* scope, List args);
|
||||
GroundValue datetime_FromEpochUTC(GroundScope* scope, List args);
|
||||
GroundValue datetime_ToEpochLocal(GroundScope* scope, List args);
|
||||
GroundValue datetime_ToEpochUTC(GroundScope* scope, List args);
|
||||
GroundValue datetime_Diff(GroundScope* scope, List args);
|
||||
GroundValue datetime_Add(GroundScope* scope, List args);
|
||||
Reference in New Issue
Block a user