fattime.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <link rel="up" title="FatFs" href="../00index_e.html">
  7. <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/fattime.html">
  8. <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
  9. <title>FatFs - get_fattime</title>
  10. </head>
  11. <body>
  12. <div class="para func">
  13. <h2>get_fattime</h2>
  14. <p>The get_fattime function gets the current time.</p>
  15. <pre>
  16. DWORD get_fattime (void);
  17. </pre>
  18. </div>
  19. <div class="para ret">
  20. <h4>Return Value</h4>
  21. <p>Currnet local time is returned in bit-fields packed into a <tt>DWORD</tt> value. The bit field is as follows:</p>
  22. <dl class="ret">
  23. <dt>bit31:25</dt>
  24. <dd>Year origin from the 1980 (0..127)</dd>
  25. <dt>bit24:21</dt>
  26. <dd>Month (1..12)</dd>
  27. <dt>bit20:16</dt>
  28. <dd>Day of the month(1..31)</dd>
  29. <dt>bit15:11</dt>
  30. <dd>Hour (0..23)</dd>
  31. <dt>bit10:5</dt>
  32. <dd>Minute (0..59)</dd>
  33. <dt>bit4:0</dt>
  34. <dd>Second / 2 (0..29)</dd>
  35. </dl>
  36. </div>
  37. <div class="para desc">
  38. <h4>Description</h4>
  39. <p>The <tt>get_fattime</tt> function shall return any valid time even if the system does not support a real time clock. If a zero is returned, the file will not have a valid timestamp.</p>
  40. </div>
  41. <div class="para comp">
  42. <h4>QuickInfo</h4>
  43. <p>This function is not needed when <tt>_FS_READONLY == 1</tt> or <tt>_FS_NORTC == 1</tt>.</p>
  44. </div>
  45. <p class="foot"><a href="../00index_e.html">Return</a></p>
  46. </body>
  47. </html>