Re: [ROOT] gStyle->SetOptDate() format

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 25 2002 - 18:22:01 MEST


Hi Ingo,

I do not know if this will make your winter-nights short and bright,
I have added new options in TStyle::SetOptDate to support two
additional ISO formats. The specs of SetOptDate are now:

void TStyle::SetOptDate(Int_t optdate)
// if optdate is non null, the current date/time will be printed in the
canvas.
// The position of the date string can be controlled by:
//  optdate = 10*format + mode
//    mode = 1   (default) date is printed in the bottom/left corner.
//    mode = 2   date is printed in the bottom/right corner.
//    mode = 3   date is printed in the top/right corner.
//    format = 0 (default) date has the format like: "Wed Sep 25 17:10:35
2002"
//    format = 1 date has the format like: "2002-09-25"
//    format = 2 date has the format like: "2002-09-25 17:10:35"
//
//  examples:
//    optdate = 1  date like "Wed Sep 25 17:10:35 2002" in the bottom/left
corner.
//    optdate = 13 date like "2002-09-25" in the top/right corner.

Now in CVS

Rene Brun

On Wed, 25 Sep 2002, Ingo Strauch wrote:

> Hi ROOTers!
> 
> Though I find the gStyle->SetOptDate() functionality quite useful, it
> could be even better if the date format could be specified by the user.
> 
> For example as in 'date -I', yielding 2002-09-25 for today.
> 
> Of course this is no urgent feature request, just a suggestion for the
> long and dark winter-nights to come ;-)
> 
> Cheers,
> Ingo
> 
> -- 
> "What're quantum mechanics?"
> "I don't know. People who repair quantums I suppose."
>                                      --Rincewind, Terry Pratchett "Eric"
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET