Project

General

Profile

Bug #12834

Placeholder %tc gives unexpected "not-a-date-time" string

Added by Gianluca Petrillo over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
I/O
Target version:
Start date:
06/02/2016
Due date:
% Done:

100%

Estimated time:
Spent time:
Occurs In:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

I tried to use in TFileService the same feature I use in RootOutput to build a file name:

fileName: "test-%p_%tc.root"

My expectation is for %p to be replaced by the process name and %tc to be replaced by a date/time representation of the creation of the ROOT file.
RootOutput module behaves as expected, while TFileService is replacing %p correctly and %tc% with a @not-a-date-time string.

I attach a simple art test job.

tc_test.fcl (188 Bytes) tc_test.fcl Job execising the bug; run with `art -c tc_test.fcl` Gianluca Petrillo, 06/02/2016 01:58 PM

History

#1 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Kyle Knoepfel
  • Target version set to 2.01.00
  • % Done changed from 0 to 100

The error has been confirmed and fixed. The object that records the open/close times of the files was not being updated for TFileService. Both %to and %tc placeholders should now work correctly for TFileService.

Implemented with commit art:f3ff8ffc4.

#2 Updated by Kyle Knoepfel over 3 years ago

A note: %tc is a placeholder corresponding to the time of file close not of file creation (which is %to for file open).

#3 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF