MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_date

Method do_date

postscript.py:380–386  ·  view source on GitHub ↗

Show printer's system date and time.

(self, arg)

Source from the content-addressed store, hash-verified

378
379 # ------------------------[ date ]------------------------------------
380 def do_date(self, arg):
381 "Show printer's system date and time."
382 str_send = '(%Calendar%) /IODevice resourcestatus\n'\
383 '{(%Calendar%) currentdevparams /DateTime get print}\n'\
384 '{(Not available) print} ifelse'
385 str_recv = self.cmd(str_send)
386 output().info(str_recv)
387
388 # ------------------------[ pagecount ]-------------------------------
389 def do_pagecount(self, arg):

Callers

nothing calls this directly

Calls 3

cmdMethod · 0.95
outputClass · 0.90
infoMethod · 0.80

Tested by

no test coverage detected