{lastedit:format:slice_id}

Description

Returns the date of the most recent item modification, formatted with a PHP date() format string. With no slice given it scans every slice and reports the newest last_edit across the whole install; pass a slice long id to limit it to that one slice. Every item store stamps last_edit with the current time, so the value tracks real edit activity. If no matching item exists the timestamp falls back to the Unix epoch (1.1.1970). The format string is a literal PHP date() format: letters are date codes, a backslash escapes the next letter to a literal character, and a colon must be written as the escaped hash-colon so it is not read as a parameter separator.

Parameters

format optional default j.n.Y

PHP date() format string for the returned date. Letters are date codes (Y year, m month, d day, H hour, i minute); a backslash before a letter prints it literally; write a colon as the escaped hash-colon so it is not read as a parameter separator.

slice_id optional default (all slices)

Long id of the slice to check. When omitted (or not a valid long id, e.g. 0) the command scans every slice and returns the newest modification across the whole install.

Examples

virtual{lastedit:d.m.Y}
Expected04.06.2026 (newest edit, in d.m.Y)
Actual04.06.2026
Pass any PHP date() format. Here a zero-padded day.month.year. Runtime-dependent on the newest edit date (e.g. 04.06.2026).
test{lastedit:\Y-\m-\d}
ExpectedY-m-d
ActualY-m-d
Each backslash turns the following date-code letter into a literal character, so this prints the literal text Y-m-d instead of the year, month and day.
virtual{lastedit:H#:i}
Expected05:20 (hour:minute of the newest edit)
Actual19:17
A colon inside a parameter must be written as the escaped hash-colon, otherwise it is read as a parameter separator. Here it yields hour:minute. Runtime-dependent (e.g. 05:20).
virtual{lastedit:Y:9e1d2b9f88e3d6c3bf0eb967378610d6}
Expected2026 (year of that slice's newest edit)
Actual2026
With a slice long id as the second argument, only that slice is checked. Here just the year of that slice's newest edit. Runtime-dependent (e.g. 2026).
test{lastedit:\u\p\d\a\t\e\d}
Expectedupdated
Actualupdated
A backslash before a letter escapes it, so the whole word prints literally regardless of the actual edit date. This makes the example deterministic.
virtual{lastedit}
Expected4.6.2026 (the newest edit date, in j.n.Y)
Actual4.6.2026
With no arguments it returns the newest last_edit across all slices in the install, in the default j.n.Y format. The value tracks live edit activity, so it is runtime-dependent (e.g. 4.6.2026).