commit | a673c03dbc15e9dff1a4399fa38dd8c9fd3b56de | [log] [tgz] |
---|---|---|
author | Denton Gentry <dgentry@google.com> | Thu Aug 02 06:52:25 2012 -0700 |
committer | Denton Gentry <dgentry@google.com> | Tue Aug 07 22:54:21 2012 -0700 |
tree | 8d63811d88e8f1b41fac3a97dae41fe4cb0ba99e | |
parent | 06070c59a3fcdda7e8bf1709e4bb17a534983298 [diff] |
Allow date -s to accept a format specifier Some examples: # Set the date to time_t=1343286000 (which is July 26, 2012) date +%s -s 1343286000 # Set the date to the first day of the year 2012. date +%Y -s 2012 Change-Id: I493f98ba6216b59375e999f744ecf2434c606a10