[Insight-users] [Insight-developers] DASHBOARD FEST 2.0: June 20-21 : Join us to break the Record !

Kevin H. Hobbs hobbsk at ohiou.edu
Thu Jun 17 11:16:52 EDT 2010


On 06/17/2010 10:26 AM, Luis Ibanez wrote:
> On Wed, Jun 16, 2010 at 1:44 PM, Kevin H. Hobbs <hobbsk at ohiou.edu
> <mailto:hobbsk at ohiou.edu>> wrote:
> 
>     On 06/09/2010 07:55 PM, Luis Ibanez wrote:
>     >
>     >
>     >               ITK DASHBOARD FEST 2.0
>     >
>     >
>     > We will celebrate our second ITK Dashboard Fest
>     >
>     > From:     Sunday June 20th - 9pm EST to
>     >       to:    Monday June 21st - 9pm EST
>     >
>     >
> 
>     The UTC offset is wrong on the wiki and in the e-mail.
> 
>     $ StartOfDBFest="Sunday June 20 2010 9:01pm EST"
>     $ TimeTillDBFest=$((`date --date="$StartOfDBFest" +%s` - `date +%s`))
>     date: invalid date `Sunday June 20 2010 9:01pm EST'
>     $ StartOfDBFest="Sunday June 20 2010 9:01pm EDT"
>     $ TimeTillDBFest=$((`date --date="$StartOfDBFest" +%s` - `date +%s`))
>     $ echo $TimeTillDBFest
>     371944
> 
> ----------------------------------------------------------------------
> 
> 
> Hi Kevin,
> 
> Thanks for checking on the dates/time
> for the DASHBOARD FEST.
> 
> I'm a bit lost with the correction though...
> 
> 
> What you are pointing out is that we should
> use EDT instead of EST ?

Yes exactly.

When I tried to set up my dashboard fest script to start submitting
builds immediately after the start of the dashboard fest, which starts
and ends after my bedtime, I noticed that "date" was rejecting the time
string.

Apparently "date" will reject any DATE STRING where the  daylight saving
time is EST when it should be EDT. The real complexity of something
which seems as simple as "a program to show me the date" amazes me.

#!/bin/bash

StartOfDBFestString="Sunday June 20 2010 9:01pm EDT"
EndOfDBFestString="Monday June 21 2010 9:00pm EDT"

StartOfDBFest=`date --date="$StartOfDBFestString" +%s`
EndOfDBFest=`date --date="$EndOfDBFestString" +%s`

CTEST=/opt/CMake-2.8.1/bin/ctest

NOW=`date +%s`
while [ $NOW -le $StartOfDBFest ]
do
  sleep 60
  NOW=`date +%s`
done

while [ $NOW -le $EndOfDBFest ]
do
  $CTEST -V -S itk_fest.cmake
  NOW=`date +%s`
done

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100617/fc1ae096/attachment.pgp>


More information about the Insight-users mailing list