forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhour.xml
More file actions
executable file
·60 lines (41 loc) · 960 Bytes
/
Copy pathhour.xml
File metadata and controls
executable file
·60 lines (41 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>hour()</name>
<category>Input</category>
<subcategory>Time & Date</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
void draw() {
background(204);
int s = second(); // Values from 0 - 59
int m = minute(); // Values from 0 - 59
int h = hour(); // Values from 0 - 23
line(s, 0, s, 33);
line(m, 33, m, 66);
line(h, 66, h, 100);
}
]]></code>
</example>
<description><![CDATA[Processing communicates with the clock on your computer. The <b>hour()</b> function returns the current hour as a value from 0 - 23.]]></description>
<syntax><![CDATA[
hour()
]]></syntax>
<parameter>
<label></label>
<description></description>
</parameter>
<returns>int</returns>
<related>
millis()
second()
minute()
day()
month()
year()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>