Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created August 20, 2012 03:45
Show Gist options
  • Save yurenju/3400416 to your computer and use it in GitHub Desktop.
Save yurenju/3400416 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
orig = open('coscup.log')
output = open('coscup.txt', 'w')
for line in orig.readlines():
hour = (8 + int(line[0:2], 10)) % 24
output.write(str(hour).zfill(2) + line[2:])
orig.close()
output.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment