Dates class
From Koha Wiki
Home > Development > RFCs > Koha components for RFCs > Aspects of multiple components RFCs > Architecture, internals, and plumbing RFCs
Home > Development > RFCs > Koha version targeted RFCs > Koha 3.4 RFCs
Home > Koha Versions > 3.4
Dates class
Sponsored by no-one and developed by no one, expected for/deadline: unknown
See also <bugzilla number> Bug <bugzilla number>.
Description
We have a Dates class but little encapsulation results, there is far too much code having to fiddle with dates. We should look to better encapsulation and reliability and give developers are more consistent interface to utilize. Handling internationalization of dates should be done in a more consistent and complete fashion. Currently we handle dates with a granularity of days. There are proposals for developments including bookings and loan periods in units less than a day so we need to handle times as well (which gives you more things you need to get right). We are making some use of perl's DateTime and anyone looking to implement dates should look at its documentation site DateTime One particular existing problem is that much of the existing code does not check fully for error conditions and invalid input.
Can someone please explain 'Discharge'? I don't think this is the correct term for this function. in a library context discharge most commonly means 'return a book from loan' The description appears to be 'remove a patron plus extra functionality.