The <datetime> object displays a date in several forms: date, time, year, or duration relative to now.
| View | Name | Element |
|---|---|---|
detailed |
md_lastplayed |
The last played date |
gameclip |
md_lastplayed |
The last played date |
You can also create your own <datetime> with extra="true", for instance to display a clock with display="realTime".
md_releasedateis not a<datetime>in Recalbox 10: it is a<scrolltext>.
| Property | Type | Purpose |
|---|---|---|
pos |
Pair | Object position. See common properties. |
size |
Pair | Block size. Usually, let fontSize decide. |
origin |
Pair | Point of the object that pos refers to. |
color |
Colour | Colour applied to the object. |
backgroundColor |
Colour | Text background colour. |
fontPath |
Path | TrueType or OpenType font to use. |
fontSize |
Float | Font size, as a fraction of screen height. |
alignment |
String | Horizontal alignment: left, center or right. center also centres vertically. |
forceUppercase |
Boolean | Displays text in uppercase. |
zIndex |
Float | Drawing order, from lowest to highest. |
disabled |
Boolean | Hides the object entirely. |
display |
String | Display format: date, time, dateTime, year, realTime (current clock) or RelativeToNow ("3 hours ago"). |
<datetime name="md_lastplayed" display="RelativeToNow" fontSize="0.028" color="FFFFFFFF" />
<datetime name="clock" extra="true" display="realTime" pos="0.97 0.03" origin="1 0"
fontSize="0.03" color="FFFFFFCC" alignment="right" zIndex="60" />