resonance 1.0.1
Loading...
Searching...
No Matches
datetime.h File Reference

Go to the source code of this file.

Functions

bool FormatCurrentDateTime (HxStr &text)
 Write the console's local date and time as "MM/DD/YY, HH:MM".

Function Documentation

◆ FormatCurrentDateTime()

bool FormatCurrentDateTime ( HxStr & text)

Write the console's local date and time as "MM/DD/YY, HH:MM".

The clock is read with sceCdReadClock() and converted to local time. Each field is written as the two decimal digits of its BCD byte. The day precedes the year and follows the month, in the United States order. text is replaced, not appended to. A failed read or a clock whose status byte is non-zero writes nothing.

Parameters
textReceives the date and time.
Returns
Whether text was written.
Ghidra address:
NTSC-U/C: 0x0053a108
Ghidra address:
PAL: 0x00579a38