File tree Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,32 @@ provides the current time
12
12
## Syntax
13
13
14
14
``` eve
15
- [#time hours minutes seconds milliseconds]
15
+ [#time year
16
+ month
17
+ day
18
+ hours
19
+ hours-24
20
+ minutes
21
+ seconds
22
+ time-string
23
+ time seconds
24
+ frames
25
+ ampm]
16
26
```
17
27
18
28
## Attributes
19
29
20
- - ` hours ` - current hour
21
- - ` minutes ` - current minute
22
- - ` seconds ` - current second
23
- - ` milliseconds ` - current millisecond
30
+ - ` year ` - the current year
31
+ - ` month ` - the current month from 0 to 11
32
+ - ` day ` - the current day of the month from 1 to 31
33
+ - ` hours ` - current hour from 0 to 11
34
+ - ` hours-24 ` - current hour from 0 to 23
35
+ - ` minutes ` - current minute from 0 to 59
36
+ - ` seconds ` - current second from 0 to 59
37
+ - ` time-string ` - the current time in a string of the form ` HH:MM AM/PM `
38
+ - ` timestamp ` - the number of milliseconds since midnight January 1, 1970
39
+ - ` ampm ` - a string indicating morning or evening
40
+ - ` frames ` - the number of frames elapsed since the program began. This fastest updating attribute on ` #time ` , refreshing evey 16 milliseconds.
24
41
25
42
## Description
26
43
@@ -40,6 +57,7 @@ bind @browser
40
57
[#div text: "The time is {{hours}}:{{minutes}}:{{seconds}}"]
41
58
```
42
59
43
- ## See Also
60
+ ### Example Usage
44
61
45
- [ date] ( date.md )
62
+ - [ Clock] ( http://play.witheve.com/#/examples/clock.eve )
63
+ - [ CRM] ( http://play.witheve.com/#/examples/CRM.eve )
You can’t perform that action at this time.
0 commit comments