source:
trunk/DataCheck/Archive/MjDtoISO.cpp@
14751
Last change on this file since 14751 was 12871, checked in by , 13 years ago | |
---|---|
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 | |
11 | using namespace std; |
12 | |
13 | |
14 | int 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.