| 346 | } |
| 347 | |
| 348 | void getDateString(char string[24], int date_format, SceDateTime *time) { |
| 349 | SceDateTime time_local; |
| 350 | convertUtcToLocalTime(&time_local, time); |
| 351 | |
| 352 | switch (date_format) { |
| 353 | case SCE_SYSTEM_PARAM_DATE_FORMAT_YYYYMMDD: |
| 354 | snprintf(string, 24, "%04d/%02d/%02d", time_local.year, time_local.month, time_local.day); |
| 355 | break; |
| 356 | |
| 357 | case SCE_SYSTEM_PARAM_DATE_FORMAT_DDMMYYYY: |
| 358 | snprintf(string, 24, "%02d/%02d/%04d", time_local.day, time_local.month, time_local.year); |
| 359 | break; |
| 360 | |
| 361 | case SCE_SYSTEM_PARAM_DATE_FORMAT_MMDDYYYY: |
| 362 | snprintf(string, 24, "%02d/%02d/%04d", time_local.month, time_local.day, time_local.year); |
| 363 | break; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void getTimeString(char string[16], int time_format, SceDateTime *time) { |
| 368 | SceDateTime time_local; |
no test coverage detected