File: insertDateAndTime.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (4 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (3)
1
2
3
4
import time
now = time.localtime(time.time())
dateStr = time.strftime("%A, %B %d, %Y,  %I:%M %p", now)
self.currentDocument.ReplaceSelection(dateStr)