Implementing strftime and strptime for custom date class

54 Views Asked by At

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.

0

There are 0 best solutions below