add Date Time bit formats

This commit is contained in:
michaelangel007 committed 2025-02-08 17:32:50 -08:00
1 parent 25d9d24324
commit 8e82d82f81
1 file changed
+12
+12
View File
@@ -79,6 +79,12 @@
,"bug" // 15 Should never happen ,"bug" // 15 Should never happen
}; };
// | Byte 1 | Byte 0 | Bytes
// +-------------------------------+-------------------------------+
// | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bits
// +---------------------------------------------------------------+
// <-----------Year-----------> <----Month----> <-------Day-------> Date
// Converts date to 9 chars: DD-MON-YR format // Converts date to 9 chars: DD-MON-YR format
// NULL terminates the string // NULL terminates the string
// ------------------------------------------------------------ // ------------------------------------------------------------
@@ -140,6 +146,12 @@
// Time ___________________________________________________________________ // Time ___________________________________________________________________
// | Byte 1 | Byte 0 | Bytes
// +---------------------------------------------------------------+
// | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bits
// +---------------------------------------------------------------+
// <----0----> <------Hours------> <--0--> <-------Minutes-------> Time
// Converts time to 6 chars: HH:MMm // Converts time to 6 chars: HH:MMm
// ------------------------------------------------------------ // ------------------------------------------------------------
void prodos_TimeToString( uint16_t time, char *text_ ) void prodos_TimeToString( uint16_t time, char *text_ )