Module: Windows::MSVCRT::Time

Defined in:
lib/windows/msvcrt/time.rb

Constant Summary collapse

Asctime =
API.new('asctime', 'P', 'P', MSVCRT_DLL)
Clock =
API.new('clock', 'V', 'L', MSVCRT_DLL)
Ctime =
API.new('ctime', 'P', 'P', 'msvcrt')
Ctime64 =
API.new('_ctime64', 'P', 'P', MSVCRT_DLL)
Difftime =
API.new('difftime', 'LL', 'L', 'msvcrt')
Ftime =
API.new('_ftime', 'P', 'L', 'msvcrt')
Ftime64 =
API.new('_ftime64', 'P', 'L', MSVCRT_DLL)
Futime =
API.new('_futime', 'IP', 'I', 'msvcrt')
Futime64 =
API.new('_futime64', 'IP', 'I', MSVCRT_DLL)
Gmtime =
API.new('gmtime', 'P', 'P', 'msvcrt')
Gmtime64 =
API.new('_gmtime64', 'P', 'P', MSVCRT_DLL)
Localtime =
API.new('localtime', 'P', 'P', 'msvcrt')
Localtime64 =
API.new('_localtime64', 'P', 'P', MSVCRT_DLL)
Mktime =
API.new('mktime', 'P', 'L', 'msvcrt')
Mktime64 =
API.new('_mktime64', 'P', 'L', MSVCRT_DLL)
Strdate =
API.new('_strdate', 'P', 'P', MSVCRT_DLL)
Strftime =
API.new('strftime', 'PLPP', 'L', MSVCRT_DLL)
Strtime =
API.new('_strtime', 'P', 'P', MSVCRT_DLL)
WinTime =

Avoid conflict

API.new('time', 'P', 'L', 'msvcrt')
WinTime64 =

Avoid conflict

API.new('_time64', 'P', 'L', MSVCRT_DLL)
Tzset =
API.new('_tzset', 'V', 'V', MSVCRT_DLL)
Utime =
API.new('_utime', 'PP', 'I', 'msvcrt')
Utime64 =
API.new('_utime64', 'PP', 'I', MSVCRT_DLL)
Wasctime =
API.new('_wasctime', 'P', 'P', MSVCRT_DLL)
Wctime =
API.new('_wctime', 'P', 'P', 'msvcrt')
Wctime64 =
API.new('_wctime64', 'P', 'P', MSVCRT_DLL)
Wstrdate =
API.new('_wstrdate', 'P', 'L', MSVCRT_DLL)
Wcsftime =
API.new('wcsftime', 'PLPP', 'L', MSVCRT_DLL)
Wstrtime =
API.new('_wstrtime', 'P', 'P', MSVCRT_DLL)
Wutime =
API.new('_wutime', 'PP', 'I', 'msvcrt')
Wutime64 =
API.new('_wutime64', 'PP', 'I', MSVCRT_DLL)

Instance Method Summary collapse

Instance Method Details

#asctime(timeptr) ⇒ Object



42
43
44
# File 'lib/windows/msvcrt/time.rb', line 42

def asctime(timeptr)
   Asctime.call(timeptr)
end

#clockObject



46
47
48
# File 'lib/windows/msvcrt/time.rb', line 46

def clock
   Clock.call
end

#ctime(timer) ⇒ Object



50
51
52
# File 'lib/windows/msvcrt/time.rb', line 50

def ctime(timer)
   Ctime.call(timer)
end

#ctime64(timer) ⇒ Object



54
55
56
# File 'lib/windows/msvcrt/time.rb', line 54

def ctime64(timer)
   Ctime64.call(timer)
end

#difftime(timer1, timer0) ⇒ Object



58
59
60
# File 'lib/windows/msvcrt/time.rb', line 58

def difftime(timer1, timer0)
   Difftime.call(timer1, timer0)
end

#ftime(timeptr) ⇒ Object



62
63
64
# File 'lib/windows/msvcrt/time.rb', line 62

def ftime(timeptr)
   Ftime.call(timeptr)
end

#ftime64(timeptr) ⇒ Object



66
67
68
# File 'lib/windows/msvcrt/time.rb', line 66

def ftime64(timeptr)
   Ftime64.call(timeptr)
end

#futime(fd, filetime) ⇒ Object



70
71
72
# File 'lib/windows/msvcrt/time.rb', line 70

def futime(fd, filetime)
   Futime.call(fd, filetime)
end

#futime64(fd, filetime) ⇒ Object



74
75
76
# File 'lib/windows/msvcrt/time.rb', line 74

def futime64(fd, filetime)
   Futime64.call(fd, filetime)
end

#gmtime(timer) ⇒ Object



78
79
80
# File 'lib/windows/msvcrt/time.rb', line 78

def gmtime(timer)
   Gmtime.call(timer)
end

#gmtime64(timer) ⇒ Object



82
83
84
# File 'lib/windows/msvcrt/time.rb', line 82

def gmtime64(timer)
   Gmtime64.call(timer)
end

#localtime(timer) ⇒ Object



86
87
88
# File 'lib/windows/msvcrt/time.rb', line 86

def localtime(timer)
   Localtime.call(timer)
end

#localtime64(timer) ⇒ Object



90
91
92
# File 'lib/windows/msvcrt/time.rb', line 90

def localtime64(timer)
   Localtime64.call(timer)
end

#mktime(timeptr) ⇒ Object



94
95
96
# File 'lib/windows/msvcrt/time.rb', line 94

def mktime(timeptr)
   Mktime.call(timeptr)
end

#mktime64(timeptr) ⇒ Object



98
99
100
# File 'lib/windows/msvcrt/time.rb', line 98

def mktime64(timeptr)
   Mktime64.call(timeptr)
end

#strdate(datestr) ⇒ Object



102
103
104
# File 'lib/windows/msvcrt/time.rb', line 102

def strdate(datestr)
   Strdate.call(datestr)
end

#strftime(dest, maxsize, format, timeptr) ⇒ Object



106
107
108
# File 'lib/windows/msvcrt/time.rb', line 106

def strftime(dest, maxsize, format, timeptr)
   Strftime.call(dest, maxsize, format, timeptr)
end

#strtime(timestr) ⇒ Object



110
111
112
# File 'lib/windows/msvcrt/time.rb', line 110

def strtime(timestr)
   Strtime.call(timestr)
end

#time(timer) ⇒ Object



114
115
116
# File 'lib/windows/msvcrt/time.rb', line 114

def time(timer)
   WinTime.call(timer)
end

#time64(timer) ⇒ Object



118
119
120
# File 'lib/windows/msvcrt/time.rb', line 118

def time64(timer)
   WinTime64.call(timer)
end

#tzsetObject



122
123
124
# File 'lib/windows/msvcrt/time.rb', line 122

def tzset
   Tzset.call
end

#utime(filename, times) ⇒ Object



126
127
128
# File 'lib/windows/msvcrt/time.rb', line 126

def utime(filename, times)
   Utime.call(filename, times)
end

#utime64(filename, times) ⇒ Object



130
131
132
# File 'lib/windows/msvcrt/time.rb', line 130

def utime64(filename, times)
   Utime64.call(filename, times)
end

#wasctime(timeptr) ⇒ Object



134
135
136
# File 'lib/windows/msvcrt/time.rb', line 134

def wasctime(timeptr)
   Wasctime.call(timeptr)
end

#wcsftime(dest, maxsize, format, timeptr) ⇒ Object



138
139
140
# File 'lib/windows/msvcrt/time.rb', line 138

def wcsftime(dest, maxsize, format, timeptr)
   Wcsftime.call(dest, maxsize, format, timeptr)
end

#wctime(timer) ⇒ Object



142
143
144
# File 'lib/windows/msvcrt/time.rb', line 142

def wctime(timer)
   Wctime.call(timer)
end

#wctime64(timer) ⇒ Object



146
147
148
# File 'lib/windows/msvcrt/time.rb', line 146

def wctime64(timer)
   Wctime64.call(timer)
end

#wstrdate(datestr) ⇒ Object



150
151
152
# File 'lib/windows/msvcrt/time.rb', line 150

def wstrdate(datestr)
   Wstrdate.call(datestr)
end

#wstrtime(timestr) ⇒ Object



154
155
156
# File 'lib/windows/msvcrt/time.rb', line 154

def wstrtime(timestr)
   Wstrtime.call(timestr)
end

#wutime(filename, times) ⇒ Object



158
159
160
# File 'lib/windows/msvcrt/time.rb', line 158

def wutime(filename, times)
   Wutime.call(filename, times)
end

#wutime64(filename, times) ⇒ Object



162
163
164
# File 'lib/windows/msvcrt/time.rb', line 162

def wutime64(filename, times)
   Wutime64.call(filename, times)
end