/* * MjDtoISO.cc * * Created on: Dec 16, 2011 * Author: lyard */ #include "Time.h" #include using namespace std; int main(int argc, const char** argv) { if (argc != 2) { cout << "Error: only one argument is accepted" << endl; return -1; } double MjD = atof(argv[1]); Time t(MjD); cout << t.Iso() << endl; }