I'm trying to make a modification to the NOAA-monthly-imp template that came preloaded with a new PRO2. I want to add a line into the export file text that will insert the date and time that the export event takes place. Ideally, the line in the template would produce text in this format:
Report generated MM/DD/YYYY hh:mm
I've tried several variations of text and variables, starting with
$Report generated [MM]/[DD]/[YYYY] [hh]:[mm]
When the template is run, it appears that the date and time variables are picking up the values for the moment that the month started rather than the time of the export event. I'm inferring that this is related to the template being a tabular month-oriented product, so it starts with the first day of the month in generating it's output. As we're currently in February of 2026, the exported text that results is "Report generated 02/01/2026 00:00".
I'm theorizing that there may be some variant of the [mbsystem] variable that might get me what I'm looking for, but I haven;t been able to figure out what the proper syntax or modifying switches (selectors and converters, to use the MB Wiki terminology) would be.
Is anyone aware of a variable construction that will produce the output I'm looking for?
How to add a current timestamp in text of a template?
Moderator: Mattk
Re: How to add a current timestamp in text of a template?
When doing an upload the upload file name can reflect upload timestamp by using the % parameters as defined for "strftime".
I don't have an immediate idea how to punch creation time (not bound to the time frame where the data is requested for) into the document itself.
I don't have an immediate idea how to punch creation time (not bound to the time frame where the data is requested for) into the document itself.

