skip to main | skip to sidebar

Tech Notes

Sunday, September 27, 2009

Python unique time string

Because this is always handy and I always seem to forget:

>>> import time
>>> str(time.time()).split('.')[0]

Useful for generating filenames based on the time etc.
Posted by techie at 8:43 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: python
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Labels

  • ubuntu
  • python
  • encryption
  • linux
  • vim
  • fstab
  • lvm
  • macbook
  • osx
  • postfix
  • postgres
  • ssd
  • truecrypt

Blog Archive

  • ►  2011 (11)
    • ►  July (1)
    • ►  March (2)
    • ►  February (2)
    • ►  January (6)
  • ►  2010 (4)
    • ►  October (1)
    • ►  July (1)
    • ►  June (1)
    • ►  February (1)
  • ▼  2009 (6)
    • ►  October (1)
    • ▼  September (1)
      • Python unique time string
    • ►  June (1)
    • ►  May (3)