Mailing List Archives
Authenticated access
|
|
|
[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
- Date: Wed, 06 May 2020 20:56:57 +0200 (CEST)
- From: "Beyer, Christoph" <christoph.beyer@xxxxxxx>
- Subject: Re: [HTCondor-users] convert from 'date +"%H-%M %m-%d-%Y"' to seconds from 1970
Yeeees, and I bet i knew that, must have been the virus that made me use it - can confirm it does funny stuff (the '.' not the virus) :(
Thanks a lot for taking over thinking for me !!!!
Best
christoph
--
Christoph Beyer
DESY Hamburg
IT-Department
Notkestr. 85
Building 02b, Room 009
22607 Hamburg
phone:+49-(0)40-8998-2317
mail: christoph.beyer@xxxxxxx
----- UrsprÃngliche Mail -----
Von: "Todd Tannenbaum" <tannenba@xxxxxxxxxxx>
An: "htcondor-users" <htcondor-users@xxxxxxxxxxx>, "Christoph Beyer" <christoph.beyer@xxxxxxx>, "Carsten Aulbert" <carsten.aulbert@xxxxxxxxxx>
Gesendet: Mittwoch, 6. Mai 2020 20:43:32
Betreff: 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