forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printing a date_and_time

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
narayanamoorthy_k



Joined: 19 Jun 2014
Posts: 142
Location: Chennai, IN

PostPosted: Sat Aug 02, 2014 1:28 pm    Post subject: Printing a date_and_time Reply with quote

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
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1886

PostPosted: Sat Aug 02, 2014 1:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
narayanamoorthy_k



Joined: 19 Jun 2014
Posts: 142
Location: Chennai, IN

PostPosted: Sun Aug 03, 2014 9:41 am    Post subject: Reply with quote

Thanks a lot mecej4. Its perfect now. Thank you
_________________
Thanks and Regards
Moorthy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group