File: insertDateAndTime.py

package info (click to toggle)
pythoncard 0.8.2-5
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 9,364 kB
  • ctags: 6,988
  • sloc: python: 56,804; makefile: 60; sh: 22
file content (4 lines) | stat: -rw-r--r-- 146 bytes parent folder | download | duplicates (4)
1
2
3
4
import time
now = time.localtime(time.time())
dateStr = time.strftime("%A, %B %d, %Y,  %I:%M %p", now)
comp.fldDocument.replaceSelection(dateStr)