Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94789
| From | random832@fastmail.us |
|---|---|
| References | <b07086dc-0946-4398-b621-23d564d54507@googlegroups.com> |
| Subject | Re: How to re-write this bash script in Python? |
| Date | 2015-07-30 16:17 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1097.1438287442.3674.python-list@python.org> (permalink) |
On Thu, Jul 30, 2015, at 14:31, sutanu.das@gmail.com wrote: > _year=$(date -d "-5 hour" +%Y) > _month=$(date -d "-5 hour" +%m) > _day=$(date -d "-5 hour" +%d) > _hour=$(date -d "-5 hour" +%H) What is the purpose of the -5 hour offset? Is it an attempt to compensate for timezones?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to re-write this bash script in Python? sutanu.das@gmail.com - 2015-07-30 11:31 -0700
Re: How to re-write this bash script in Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-30 20:36 +0100
Re: How to re-write this bash script in Python? random832@fastmail.us - 2015-07-30 16:17 -0400
Re: How to re-write this bash script in Python? Chris Angelico <rosuav@gmail.com> - 2015-07-31 17:47 +1000
Re: How to re-write this bash script in Python? Grant Edwards <invalid@invalid.invalid> - 2015-07-31 14:26 +0000
Re: How to re-write this bash script in Python? Chris Angelico <rosuav@gmail.com> - 2015-08-01 00:53 +1000
csiph-web