by dzsekijo · 2y ago · 0 comments
DateTimeFns.add_minutes(DateTimeFns.add_hours(DateTime.current, 1), 1)
Sure thing, but the syntax can be improved without restorting to refactor into instance methods: DateTime.current.then {
DateTimeFns.add_hours(_1, 1)
}.then {
DateTimeFns.add_minutes(_1, 1)
}No comments yet.