File: insertDateAndTime.py

package info (click to toggle)
pythoncard 0.8.1-8.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 5,352 kB
  • ctags: 4,594
  • sloc: python: 42,401; makefile: 55; sh: 22
file content (4 lines) | stat: -rw-r--r-- 143 bytes parent folder | download | duplicates (5)
1
2
3
4
import time
now = time.localtime(time.time())
dateStr = time.strftime("%A, %B %d, %Y,  %I:%M %p", now)
comp.document.ReplaceSelection(dateStr)