src/pylib/Lib/datetime_impl/datetime_impl/meth/struct_tm_decl

Search:
Group by:
Source   Edit  

Types

struct_tm {.importc: "struct tm", header: "<time.h>", completeStruct.} = object
Source   Edit  
Tm {.importc: "struct tm", header: "<time.h>".} = object
  tm_year*: int              ## years since 1900
  tm_mon*: range[0 .. 11]
  tm_mday*: range[1 .. 31]
  tm_hour*: range[0 .. 23]
  tm_min*: range[0 .. 59]
  tm_sec*: range[0 .. 61]    ## C89 is 0..61, C99 is 0..60
  tm_wday*: range[0 .. 6]
  tm_yday*: range[0 .. 365]
  tm_isdst*: int
Source   Edit  

Procs

func initTm(): Tm {....raises: [], tags: [], forbids: [].}
Source   Edit  
func month(tm: Tm): int {....raises: [], tags: [], forbids: [].}
Source   Edit  
func year(tm: Tm): int {....raises: [], tags: [], forbids: [].}
Source   Edit  

Templates

template initTm(tm: var Tm)
Source   Edit