InsertTime Text Command

INSERTTIME Text Commands

Inserts a time variable at the insertion point.

inserttime

time/k The date to insert. All options except current and created are updated when applicable.

Options: CURRENT Current date. Default.
CREATED Creation date.
MODIFIED Modification date.
SAVED Saved date.
LOADED Loaded date.
PRINTED Printed date.
DOCUMENTREVISION Document log entry date.
CHAPTERREVISION Chapter log entry date.
PAGEREVISION Page log entry date.
ARTICLEREVISION Article log entry date.

FORMAT/s The time format. See below.

Default='h:m PM'.

LANGUAGE/k The language of the time variable.

Options: DEFAULT Document/chapter default.
AMERICAN American English.
ENGLISH International English.
FRANCAIS French.
DEUTSCH German.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

Notes:

The FORMAT string contains the order, length and separators for the time.

: Separate with a colon.

Separate with a space.

\ One character following a backslash or text inside double " " quotation marks will appear as is.

The capitalization of the format string determines the capitalization of the time, if applicable.

h Hour, no leading zero. 5
hh Hour, leading zero. 05
m Minutes, no leading zero. 8
mm Minutes, leading zero. 08
s Seconds, no leading zero. 3
s Seconds, leading zero. 03
ampm Shows am or pm as appropriate. 5 am
pm Shows only pm when time>12:00. 7 pm
No indicator specifies 24 hour time. 19

Format Examples:
h:m 5:15, 19:3
h:m ampm 5:15 am, 7:30 p
h:m PM 5:15, 7:30 P
hh:mm:ss 05:15:21, 19:30:4
hh\hmm 5h15

Examples:

inserttime current format 'hh:mm:ss'

inserttime printed

 

InsertTime  Command Definition  url:PGScmd/inserttime
  created:2006-03-30 14:58:59   last updated:2006-03-30 14:58:59
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For InsertTime
Dan Kilroy wrote...2006-05-04 16:56:27

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

InsertTime ([CURRENT|CREATED|MODIFIED|SAVED|LOADED|PRINTED| DOCUMENTREVISION|CHAPTERREVISION|PAGEREVISION|ARTICLEREVISION|CUSTOM hour minute second milli] [FORMAT format] [LANGUAGE <DEFAULT | language>] [DOCUMENT document | WINDOW document~window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For InsertTime