I've written a custom date class for a non-Gregorian calendar system.
Is there an easy way to implement strftime
and strptime
without having to implement all the logic myself?
My class has a day, month and year field, so in principle all I would need to provide the existing strftime
and strptime
implementations are the names of months and days of the week as strings.