Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="983Dayscale.html">
8
<LINK REL="Next" HREF="985Monthscale.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="983Dayscale.html">Previous</A>
26
<A HREF="985Monthscale.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="9_8_4">9.8.4 Week scale</A></H3>
29
<P> Week scales, if enabled, by default shows the week number in range 1
30
 to 53 (as defined by ISO-8601, see the reference section).</P>
31
<P> It might be worth pointing out here that the week number calculation
32
 is carried out within JpGraph and does not rely on the underlying OS
33
 date libraries. This makes the behavior consistent over several OS:s
34
 (at least M$ Windows does<B> not</B> comply to ISO-8601 or supply any
35
 way of doing this through the normal libraries, e.g. strftime())</P>
36
<P> You may modify the week behavior in three ways. You can specify
37
 (with SetStyle()) a different date format using the constants</P>
38
<UL>
39
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
40
&nbsp;WEEKSTYLE_WNBR</FONT></FONT></CODE></DIV>
41
<P> Show week number To further modify the formatting of the actual week
42
 number you can optionally supply a format string with a call to<DIV class="phpscript">
43
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;SetLabelFormatString</FONT><FONT
44
color="#007700">()</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV>
45
</P>
46
<P> The format of the string should be a standard sprintf() syntax
47
 expecting an integer (the week number). By default a 'W' is prefixed to
48
 the number.</P>
49
</LI>
50
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
51
&nbsp;WEEKSTYLE_FIRSTDAY</FONT></FONT></CODE></DIV>
52
<P> Show date of first day in week.</P>
53
</LI>
54
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
55
&nbsp;WEEKSTYLE_FIRSTDAY2</FONT></FONT></CODE></DIV>
56
<P> Show date of first day in week and short month</P>
57
</LI>
58
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
59
&nbsp;WEEKSTYLE_FIRSTDAYWNBR</FONT></FONT></CODE></DIV>
60
<P> Show weeknumber of first day in week.</P>
61
</LI>
62
<LI><DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB">
63
&nbsp;WEEKSTYLE_FIRSTDAY2WNBR</FONT></FONT></CODE></DIV>
64
<P> Show weeknumber of first day in week and month</P>
65
</LI>
66
</UL>
67
<P></P>
68
<HR NOSHADE>
69
<A HREF="toc.html">Contents</A>
70
<A HREF="983Dayscale.html">Previous</A>
71
<A HREF="985Monthscale.html">Next</A>
72
</BODY>
73
</HTML>