[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] convert from 'date +"%H-%M %m-%d-%Y"' to seconds from 1970



On 5/6/2020 6:22 AM, Beyer, Christoph wrote:
ah,

mille gracie, this did the trick:

AtlasSeconds = 1588874264
STARTD_ATTRS = $(STARTD_ATTRS), AtlasSeconds, FITS_IN_MAINTENANCE
FITS_IN_MAINTENANCE = (time() + TARGET.RequestRuntime) < $(AtlasSeconds)
START = $(START:True) && (FITS_IN_MAINTENANCE)

Best
christoph



Yay!

Yes, periods are not allowed in ClassAd attribute names.  From the HTCondor Manual at
   https://htcondor.readthedocs.io/en/latest/misc-concepts/classad-mechanism.html#attributes
it states "Attribute names are sequences of alphabetic characters, digits and underscores, and may not begin with a digit."

So you could use an underscore in place of the periods, or just use camel case like you did above...

regards,
Todd