00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "XrdMon/XrdMonUtils.hh"
00014 #include "XrdSys/XrdSysHeaders.hh"
00015 #include <stdio.h>
00016 #include <string>
00017 using std::cerr;
00018 using std::cout;
00019 using std::endl;
00020 using std::string;
00021
00022 int main(int argc, char* argv[])
00023 {
00024 if ( argc < 2 ) {
00025 cerr << "Expected arg: timestamp" << endl;
00026 return 1;
00027 }
00028 for ( int i=1 ; i<argc ; ++i ) {
00029 kXR_int32 t;
00030 sscanf(argv[i], "%ld", &t);
00031 cout << t << " --> " << timestamp2string(t) << endl;
00032 }
00033
00034 return 0;
00035 }
00036
00037