source: trunk/DataCheck/Archive/MjDtoISO.cpp@ 14158

Last change on this file since 14158 was 12871, checked in by lyard, 13 years ago
added more scripts
File size: 377 bytes
Line 
1/*
2 * MjDtoISO.cc
3 *
4 * Created on: Dec 16, 2011
5 * Author: lyard
6 */
7
8#include "Time.h"
9#include <iostream>
10
11using namespace std;
12
13
14int main(int argc, const char** argv)
15{
16 if (argc != 2)
17 {
18 cout << "Error: only one argument is accepted" << endl;
19 return -1;
20 }
21
22 double MjD = atof(argv[1]);
23
24 Time t(MjD);
25
26 cout << t.Iso() << endl;
27
28}
Note: See TracBrowser for help on using the repository browser.