Skip to content

sys ctime

IsaacShelton edited this page Nov 13, 2022 · 5 revisions

sys/ctime

sys/ctime.adept contains symbols from <time.h>.

Type Aliases

alias time_t  = long
alias clock_t = long

Structures

packed struct tm (tm_sec, tm_min, tm_hour, tm_mday, tm_mon, tm_year, tm_wday, tm_yday, tm_isdst int)

Constants

define CLOCKS_PER_SEC = 1000

Functions

  • foreign clock() clock_t
  • foreign difftime(time_t, time_t) double
  • foreign mktime(*tm) time_t
  • foreign time(*time_t) time_t
  • foreign asctime(*tm) *ubyte
  • foreign ctime(*time_t) *ubyte
  • foreign gmtime(*time_t) *tm
  • foreign localtime(*time_t) *tm
  • foreign strftime(out *ubyte, usize, *ubyte, *tm) usize
Clone this wiki locally