getdate.y: factor out common actions
authorOndřej Vašík <ovasik@redhat.com>
Fri, 27 Jun 2008 15:37:40 +0000 (17:37 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 2 Jul 2008 13:29:31 +0000 (15:29 +0200)
commit09b438a1efb382779e2028dd0fb30cdb0b745c81
tree6154b69b4074d0e6bf397642281192670ae86718
parent5e673c40112701e37d600116ae4deda05db3d36f
getdate.y: factor out common actions

* lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
Use them in place of open-coded actions.
ChangeLog
lib/getdate.y