Last change
on this file since 439 was 439, checked in by coas-nagasima, 4 years ago |
mrubyを2.1.1に更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
466 bytes
|
Rev | Line | |
---|
[439] | 1 | /*
|
---|
| 2 | ** mruby/time.h - Time class
|
---|
| 3 | **
|
---|
| 4 | ** See Copyright Notice in mruby.h
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | #ifndef MRUBY_TIME_H
|
---|
| 8 | #define MRUBY_TIME_H
|
---|
| 9 |
|
---|
| 10 | #include "mruby/common.h"
|
---|
| 11 | #include <time.h>
|
---|
| 12 |
|
---|
| 13 | MRB_BEGIN_DECL
|
---|
| 14 |
|
---|
| 15 | typedef enum mrb_timezone {
|
---|
| 16 | MRB_TIMEZONE_NONE = 0,
|
---|
| 17 | MRB_TIMEZONE_UTC = 1,
|
---|
| 18 | MRB_TIMEZONE_LOCAL = 2,
|
---|
| 19 | MRB_TIMEZONE_LAST = 3
|
---|
| 20 | } mrb_timezone;
|
---|
| 21 |
|
---|
| 22 | MRB_API mrb_value mrb_time_at(mrb_state *mrb, time_t sec, time_t usec, mrb_timezone timezone);
|
---|
| 23 |
|
---|
| 24 | MRB_END_DECL
|
---|
| 25 |
|
---|
| 26 | #endif /* MRUBY_TIME_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.