The task involves checking the current time using legacy Java code. Older Java datetime libraries offered a straightforward method for this, such as new Date().getTime(). However, the provided code demonstrates an unnecessarily convoluted approach. This involved creating a Date, extracting its time, using it to create a Timestamp, extracting the time again, and finally constructing a new Date object from that. The author considers this self-inflicted complexity to be a sign of "home grown ugliness," highlighting the poor design choices made despite the original library's capabilities.
new Date().getTime(). However, the provided code demonstrates an unnecessarily convoluted approach. This involved creating a Date, extracting its time, using it to create a Timestamp, extracting the time again, and finally constructing a new Date object from that. The author considers this self-inflicted complexity to be a sign of "home grown ugliness," highlighting the poor design choices made despite the original library's capabilities.