]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/documents/doc/fattime.html
Import fatfs R0.13b
[z180-stamp.git] / fatfs / documents / doc / fattime.html
diff --git a/fatfs/documents/doc/fattime.html b/fatfs/documents/doc/fattime.html
new file mode 100644 (file)
index 0000000..dfc4937
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
+<html lang="en">\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+<meta http-equiv="Content-Style-Type" content="text/css">\r
+<link rel="up" title="FatFs" href="../00index_e.html">\r
+<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/fattime.html">\r
+<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
+<title>FatFs - get_fattime</title>\r
+</head>\r
+\r
+<body>\r
+\r
+<div class="para func">\r
+<h2>get_fattime</h2>\r
+<p>The get_fattime function is called to get the current time.</p>\r
+<pre>\r
+DWORD get_fattime (void);\r
+</pre>\r
+</div>\r
+\r
+\r
+<div class="para ret">\r
+<h4>Return Value</h4>\r
+<p>Currnet local time shall be returned as bit-fields packed into a <tt>DWORD</tt> value. The bit fields are as follows:</p>\r
+<dl class="ret">\r
+<dt>bit31:25</dt>\r
+<dd>Year origin from the 1980 (0..127, e.g. 37 for 2017)</dd>\r
+<dt>bit24:21</dt>\r
+<dd>Month (1..12)</dd>\r
+<dt>bit20:16</dt>\r
+<dd>Day of the month (1..31)</dd>\r
+<dt>bit15:11</dt>\r
+<dd>Hour (0..23)</dd>\r
+<dt>bit10:5</dt>\r
+<dd>Minute (0..59)</dd>\r
+<dt>bit4:0</dt>\r
+<dd>Second / 2 (0..29, e.g. 25 for 50)</dd>\r
+</dl>\r
+</div>\r
+\r
+\r
+<div class="para desc">\r
+<h4>Description</h4>\r
+<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>\r
+</div>\r
+\r
+\r
+<div class="para comp">\r
+<h4>QuickInfo</h4>\r
+<p>This function is not needed when <tt>FF_FS_READONLY == 1</tt> or <tt>FF_FS_NORTC == 1</tt>.</p>\r
+</div>\r
+\r
+\r
+<p class="foot"><a href="../00index_e.html">Return</a></p>\r
+</body>\r
+</html>\r