Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
ja:root:tdatime [GiriWiki]

ユーザ用ツール

サイト用ツール


ja:root:tdatime

以前のリビジョンの文書です



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/handler.php on line 1458

Warning: Declaration of syntax_plugin_note::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 79

Warning: Declaration of syntax_plugin_note::render($mode, &$renderer, $indata) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/lib/plugins/note/syntax.php on line 101

Warning: preg_match(): Compilation failed: invalid range in character class at offset 3120 in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== TDatime ====== ---- 時間を横軸にしたりするときに使えるかも。 #include <TDatime.h> <code cpp> TDatime::TDatime()// 引数なしだと現在時刻をとる。 TDatime::TDatime(Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec) TDatime::Set(Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec)  UInt_t TDatime::Convert(Bool_t toGMT=kFALSE)// UNIX time で出力  char* TDatime::AsString()//出力  char* TDatime::AsSQLString()//SQLのフォーマットで出力 </code> <code cpp> // gStyle->SetTimeOffset(-788918400);// <- なぜかこれではうまくいかなかったので其々の値からoffsetをいちいち引くことにする UInt_t Offset = 788918400; TDatime *dateBegin = new TDatime(2010,1,1,0,0,0); TDatime *dateEnd = new TDatime(2011,1,1,0,0,0); TCanvas *c = new TCanvas("c","c",1300,500); TH1F *frame = c->DrawFrame(dateBegin->Convert()-Offset,0,dateEnd->Convert()-Offset,1); frame->GetXaxis()->SetTimeOffset(788918400); frame->GetXaxis()->SetNdivisions(505); frame->GetXaxis()->SetTimeDisplay(1); frame->GetXaxis()->SetTimeFormat("#splitline{%Y/%m/%d}{%H:%M}");//#splitline{}{}で二段に。%yは年の下2桁のみ表示 frame->GetXaxis()->SetLabelOffset(0.02); gPad->Modified(); </code>

ja/root/tdatime.1480765957.txt.gz · 最終更新: 2016/12/03 11:52 by kota