Skip to content

Commit b095f0e

Browse files
committed
增加时间及自定义数据 api
1 parent eee2b22 commit b095f0e

2 files changed

Lines changed: 132 additions & 0 deletions

File tree

include/E2L/date_time.hpp

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,123 @@ void TimeGMTOffset(); /* ----- end of function TimeGMTOffset ----- */
162162
* ============================================
163163
*/
164164
e2::Int_e Clock(); /* ----- end of function Clock ----- */
165+
166+
/*
167+
* === FUNCTION =============================
168+
*
169+
* Name: year
170+
* -> void *
171+
* Parameters:
172+
* - size_t arg
173+
* Description:
174+
*
175+
* ============================================
176+
*/
177+
e2::Int_e year(e2::Int_e); /* ----- end of function year ----- */
178+
179+
/*
180+
* === FUNCTION =============================
181+
*
182+
* Name: month
183+
* -> void *
184+
* Parameters:
185+
* - size_t arg
186+
* Description:
187+
*
188+
* ============================================
189+
*/
190+
e2::Int_e month(e2::Int_e); /* ----- end of function month ----- */
191+
192+
/*
193+
* === FUNCTION =============================
194+
*
195+
* Name: day
196+
* -> void *
197+
* Parameters:
198+
* - size_t arg
199+
* Description:
200+
*
201+
* ============================================
202+
*/
203+
e2::Int_e day(e2::Int_e); /* ----- end of function day ----- */
204+
/*
205+
* === FUNCTION =============================
206+
*
207+
* Name: week
208+
* -> void *
209+
* Parameters:
210+
* - size_t arg
211+
* Description:
212+
* 0 - sunday
213+
* ============================================
214+
*/
215+
e2::Int_e week(e2::Int_e); /* ----- end of function week ----- */
216+
/*
217+
* === FUNCTION =============================
218+
*
219+
* Name: year_week
220+
* -> void *
221+
* Parameters:
222+
* - size_t arg
223+
* Description:
224+
*
225+
* ============================================
226+
*/
227+
e2::Int_e year_week(e2::Int_e); /* ----- end of function year_week ----- */
228+
229+
230+
/*
231+
* === FUNCTION =============================
232+
*
233+
* Name: hours
234+
* -> void *
235+
* Parameters:
236+
* - size_t arg
237+
* Description:
238+
*
239+
* ============================================
240+
*/
241+
e2::Int_e hours ( e2::Int_e ); /* ----- end of function hours ----- */
242+
/*
243+
* === FUNCTION =============================
244+
*
245+
* Name: minutes
246+
* -> void *
247+
* Parameters:
248+
* - size_t arg
249+
* Description:
250+
*
251+
* ============================================
252+
*/
253+
e2::Int_e minutes ( e2::Int_e ); /* ----- end of function minutes ----- */
254+
255+
/*
256+
* === FUNCTION =============================
257+
*
258+
* Name: second
259+
* -> void *
260+
* Parameters:
261+
* - size_t arg
262+
* Description:
263+
*
264+
* ============================================
265+
*/
266+
e2::Int_e second (e2::Int_e ); /* ----- end of function second ----- */
267+
268+
269+
270+
/*
271+
* === FUNCTION =============================
272+
*
273+
* Name: millisecond
274+
* -> void *
275+
* Parameters:
276+
* - size_t arg
277+
* Description:
278+
*
279+
* ============================================
280+
*/
281+
e2::Int_e millisecond ( e2::Int_e ); /* ----- end of function millisecond ----- */
282+
165283
} // namespace e2l
166284
#endif /* ----- #ifndef DATE_TIME_INC ----- */

include/E2L/marketinfo.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,20 @@ e2::Int_e ExdiShare(e2::Int_e id); /* ----- end of function ExdiShare ----- */
401401
e2::Int_e CustomDataSize(
402402
e2::Int_e, e2::Int_e); /* ----- end of function CustomDataSize ----- */
403403

404+
405+
406+
/*
407+
* === FUNCTION =============================
408+
*
409+
* Name: CustomDataNumber
410+
* -> void *
411+
* Parameters:
412+
* - size_t arg
413+
* Description:
414+
*
415+
* ============================================
416+
*/
417+
e2::Int_e CustomDataNumber ( e2::Int_e, e2::Int_e ); /* ----- end of function CustomDataNumber ----- */
404418
/*
405419
* === FUNCTION =============================
406420
*

0 commit comments

Comments
 (0)