MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / getDateString

Function getDateString

utils.c:348–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void 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
367void getTimeString(char string[16], int time_format, SceDateTime *time) {
368 SceDateTime time_local;

Callers 3

initPropertyDialogFunction · 0.85
browserMainFunction · 0.85
drawShellInfoFunction · 0.85

Calls 1

convertUtcToLocalTimeFunction · 0.85

Tested by

no test coverage detected