show map timestamp in map info menu
also: more stuff in the map settings menu getmaptimestamp fmt Returns the "last written" timestamp of the current map in the requested format. If fmt starts with "U", the time is given as UTC, otherwise as local time. If fmt is empty, or not given or just the "U", the format defaults to "YYYYMMDD_hh.mm.ss". Use "%c" to get something nicer. DOCREF getmaptimestamp
This commit is contained in:
@@ -773,6 +773,7 @@ COMMAND(showmapdims, "");
|
||||
extern void preparectf(bool cleanonly = false);
|
||||
int maploaded = 0;
|
||||
VAR(curmaprevision, 1, 0, 0);
|
||||
COMMANDF(getmaptimestamp, "s", (char *fmt) { result(hdr.timestamp ? timestring((time_t)hdr.timestamp, *fmt != 'U', *fmt == 'U' ? fmt + 1 : fmt) : "no timestamp stored"); });
|
||||
|
||||
extern char *mlayout;
|
||||
extern int Mv, Ma, Hhits;
|
||||
|
||||
Reference in New Issue
Block a user