bokmann / business_time

Support for doing time math in business hours and days
MIT License
1.27k stars 211 forks source link

PreseTime class add methods to_time, to_datetime, strftime #185

Closed 4geru closed 2 years ago

4geru commented 5 years ago

background

I would like to use date end of workday. like time object.

BusinessTime::Config.beginning_of_workday.strftime("at %I:%M")

so I add strftime method. Also I thought BusinessTime::ParsedTime should be return Time or DateTime object. it has hour, min, sec, but it cannot use simiilar to use Time or DateTime. So, I add to_time, to_datetime method :)

4geru commented 2 years ago

@bokmann May I ask for a review?