Anyone got an example of using ParseDate(), I just can't get it to work.
void DateToDate(STRPTR date, struct DateStamp *dateStamp)
{
STRPTR pattern = (STRPTR)"%Y%m%d-%H.%M";
struct Hook datehook;
datehook.h_Entry = (HOOKFUNC)DateToDateHook;
datehook.h_SubEntry = NULL;
datehook.h_Data = date;
ILocale->ParseDate(Locale, dateStamp, pattern, &datehook);
..
..
}
char DateToDateHook(struct Hook *hook, struct Locale *locale, APTR mu)
{
// what the hell am I suppsoed to do here?!?
}
Edited by orgin on 2010/1/16 18:44:04
Edited by orgin on 2010/1/16 19:02:05
Edited by orgin on 2010/1/16 19:04:17
Edited by orgin on 2010/1/16 19:46:22