Add test for fatfs.
[bertos.git] / bertos / fs / fatfs / doc / en / fattime.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2 <html lang="en">\r
3 <head>\r
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
5 <meta http-equiv="Content-Style-Type" content="text/css">\r
6 <link rel="up" title="FatFs" href="../00index_e.html">\r
7 <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
8 <title>FatFs - get_fattime</title>\r
9 </head>\r
10 \r
11 <body>\r
12 \r
13 <div class="para">\r
14 <h2>get_fattime</h2>\r
15 <p>The get_fattime function gets current time.</p>\r
16 <pre>\r
17 DWORD get_fattime (void);\r
18 </pre>\r
19 </div>\r
20 \r
21 \r
22 <div class="para">\r
23 <h4>Return Value</h4>\r
24 <p>Currnet time is returned with packed into a DWORD value. The bit field is as follows:</p>\r
25 <dl class="ret">\r
26 <dt>bit31:25</dt>\r
27 <dd>Year from 1980 (0..127)</dd>\r
28 <dt>bit24:21</dt>\r
29 <dd>Month (1..12)</dd>\r
30 <dt>bit20:16</dt>\r
31 <dd>Day in month(1..31)</dd>\r
32 <dt>bit15:11</dt>\r
33 <dd>Hour (0..23)</dd>\r
34 <dt>bit10:5</dt>\r
35 <dd>Minute (0..59)</dd>\r
36 <dt>bit4:0</dt>\r
37 <dd>Second / 2 (0..29)</dd>\r
38 </dl>\r
39 </div>\r
40 \r
41 \r
42 <div class="para">\r
43 <h4>Description</h4>\r
44 <p>The get_fattime function must return any valid time even if the system does not support a real time clock. This fucntion is not required in read only configuration.</p>\r
45 </div>\r
46 \r
47 \r
48 <p class="foot"><a href="../00index_e.html">Return</a></p>\r
49 </body>\r
50 </html>\r