25#define seconds_per_year 31557600L
33 ( __int128 ) ( 14L * 1000000000L ) );
43 unsigned __int128 value =
pointer2cell( t ).payload.time.value;
54 unsigned __int128 result =
epoch_offset + ( t * 1000000000 );
100 char *bytes = ctime( &t );
101 int l = strlen( bytes ) + 1;
104 mbstowcs( buffer, bytes, l );
struct cons_pointer allocate_cell(uint32_t tag)
Allocates a cell with the specified tag.
union cons_space_object::@3 payload
#define NIL
a cons pointer which points to the special NIL cell
#define timep(conspoint)
true if conspoint points to a time cell, else false.
#define TIMETV
The string TIME, considered as an unsigned int.
struct cons_pointer c_string_to_lisp_string(wchar_t *string)
Return a lisp string representation of this wide character string.
#define pointer2cell(pointer)
given a cons_pointer as argument, return the cell.
#define integerp(conspoint)
true if conspoint points to an integer cell, else false
An indirect pointer to a cons cell.
unsigned __int128 unix_time_to_lisp_time(time_t t)
struct cons_pointer time_to_string(struct cons_pointer pointer)
This is temporary, for bootstrapping.
long int lisp_time_to_unix_time(struct cons_pointer t)
Return the UNIX time value which represents this time, if it falls within the period representable in...
struct cons_pointer lisp_time(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
Function; return a time representation of the first argument in the frame; further arguments are igno...
struct cons_pointer make_time(struct cons_pointer integer_or_nil)
unsigned __int128 epoch_offset
PSSE Lisp epoch is 14 Bn years, or 441,806,400,000,000,000 seconds, before the UNIX epoch; the value ...