Skip to content

Commit b0dbebc

Browse files
committed
Fixes #10
1 parent a82208f commit b0dbebc

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

src/handbook/datetime/time.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,32 @@ provides the current time
1212
## Syntax
1313

1414
```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]
1626
```
1727

1828
## Attributes
1929

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.
2441

2542
## Description
2643

@@ -40,6 +57,7 @@ bind @browser
4057
[#div text: "The time is {{hours}}:{{minutes}}:{{seconds}}"]
4158
```
4259

43-
## See Also
60+
### Example Usage
4461

45-
[date](date.md)
62+
- [Clock](http://play.witheve.com/#/examples/clock.eve)
63+
- [CRM](http://play.witheve.com/#/examples/CRM.eve)

0 commit comments

Comments
 (0)