View previous topic :: View next topic |
Author |
Message |
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Sat Aug 02, 2014 1:28 pm Post subject: Printing a date_and_time |
|
|
Hello
I try to print the Date and Time in this format.
Sat Aug 02, 2014 17:54:55
I have tried date_and_time(), but the values[] shows only integer values of the date and time, not in the above format.
Any function available to do or convert the above to do this? (tried ToFDate@(), but some errors)..
Pls. help _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Sat Aug 02, 2014 1:52 pm Post subject: |
|
|
Look up the section "Time and Date Routines" in the manual. For example,
Code: | character(len=23) :: fdate@,time@
...
write(*,*)fdate@()//","//time@()
|
|
|
Back to top |
|
|
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Sun Aug 03, 2014 9:41 am Post subject: |
|
|
Thanks a lot mecej4. Its perfect now. Thank you _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
|