Mercurial > public > ostc4
comparison Discovery/Src/data_central.c @ 944:44599695df41 Evo_2_23
Restructure Date/Time menu:
To have more space for upcoming optins the selection of the date format (DDMMYY) has been moved into a submenu. In addition the function was upgraded to support multi language handling.
author | Ideenmodellierer |
---|---|
date | Thu, 19 Dec 2024 18:58:18 +0100 |
parents | 63c340abd70e |
children | aad1a6b9aaec |
comparison
equal
deleted
inserted
replaced
943:e7f87ade3037 | 944:44599695df41 |
---|---|
970 } | 970 } |
971 lastColor = color; | 971 lastColor = color; |
972 return color; | 972 return color; |
973 } | 973 } |
974 | 974 |
975 | 975 /* returns the date in the order defined by the settings DDMMYY => X */ |
976 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year) | |
977 { | |
978 if(strLen > 10) | |
979 { | |
980 switch(settingsGetPointer()->date_format) | |
981 { | |
982 default: | |
983 case DDMMYY: snprintf(pString,strLen,"%02d.%02d.%02d",day,month,year); | |
984 break; | |
985 case MMDDYY: snprintf(pString,strLen,"%02d.%02d.%02d",month,day,year); | |
986 break; | |
987 case YYMMDD: snprintf(pString,strLen,"%02d.%02d.%02d",year,month,day); | |
988 break; | |
989 } | |
990 } | |
991 } | |
992 /* returns the format in the order defined by the settings DDMMYY => X */ | |
993 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen) | |
994 { | |
995 if(strLen > 10) | |
996 { | |
997 switch(settingsGetPointer()->date_format) | |
998 { | |
999 default: | |
1000 case DDMMYY: snprintf(pString,strLen,"%c%c",TXT_2BYTE,TXT2BYTE_DDMMYY); | |
1001 break; | |
1002 case MMDDYY: snprintf(pString,strLen,"%c%c",TXT_2BYTE,TXT2BYTE_MMDDYY); | |
1003 break; | |
1004 case YYMMDD: snprintf(pString,strLen,"%c%c",TXT_2BYTE,TXT2BYTE_YYMMDD); | |
1005 break; | |
1006 } | |
1007 } | |
1008 } | |
1009 | |
1010 |