PX_DATE2STRING(3)
NAME π¦
PX_date2string β okay so bestie, this one takes a Paradox date and turns it into a cute little formatted string. Convert paradox date into formatted string, periodt. π
β¨ SYNOPSIS β¨
#include <paradox.h>
char * PX_date2string(pxdoc_t *pxdoc, long date, const char *format)
π DESCRIPTION π
So what it does is: it creates a string representation of a paradox date, exactly how you asked for it in the format parameter. Main character energy, honestly.
Now, where does that date even come from? Two options, bestie, pick your fighter:
- You grabbed it with
PX_get_data_long(3)β but only after you calledPX_get_record(3)first, mkay? Order matters. π - Or you just straight-up used the
longvalue sitting in thepxval_tstruct thatPX_retrieve_record(3)handed you. Easy. Iconic. No extra steps. π
Under the hood it's secretly using the PX_timestamp2string(3) function β not me exposing the internal collab π€ β so your format string can contain all the chars documented over there in PX_timestamp2string(3). But lowkey? Only the ones that have anything to do with the date are gonna give you reasonable results. The rest is giving... nothing. π
π RETURN VALUE π
- On success: a pointer to the string. Slay. β¨
- On failure:
NULL. Sad girl hours. π
πΈ SEE ALSO πΈ
Go read those too, they're the sequel, iykyk. π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. Thank you for your service, king. π«Ά
Anyways, that's the whole page β it lives in the Library Functions Manual and it's filed under PX_DATE2STRING(3), so if you ever need to find it again, that's your girl. Byeee, go format some dates bestie π¦β¨π
π¦ where this page comes from
- debian bookworm: pxlib-dev 0.6.8-1+b1
- debian trixie: pxlib-dev 0.6.9-1+b1
- ubuntu jammy: pxlib-dev 0.6.8-1
- ubuntu noble: pxlib-dev 0.6.8-1
- ubuntu questing: pxlib-dev 0.6.9-1
- ubuntu resolute: pxlib-dev 0.6.9-1build1
- ubuntu stonking: pxlib-dev 0.6.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms