Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / kernel / fs / iso9660 / utils.c
index 748077d28e780e9030fa3d9268b9c800f8c201e4..36d8847298eb70b908dded449a0e90a96d6c6ae5 100644 (file)
@@ -1,4 +1,4 @@
-#include <lunaix/fs/iso9660.h>
+#include "iso9660.h"
 
 struct iso_drecord*
 iso9660_get_drecord(struct iso_var_mdu* drecord_mdu)
@@ -22,3 +22,14 @@ iso9660_dt2unix(struct iso_datetime* isodt)
                        TWO_DIGIT(isodt->min),
                        TWO_DIGIT(isodt->sec));
 }
+
+time_t
+iso9660_dt22unix(struct iso_datetime2* isodt2)
+{
+    return time_tounix(isodt2->year + 1900,
+                       isodt2->month,
+                       isodt2->day,
+                       isodt2->hour,
+                       isodt2->min,
+                       isodt2->sec);
+}
\ No newline at end of file