Converting String to Time
- From: "Charles Tam" <CharlesTam@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 8 Aug 2005 23:46:41 -0700
I've a function that format time to string (see below). How do I write a
function that converts the formatted string back to time? Could you please
include your example with syntax?
CString convertTimeToString(const long input_time){
CString str_time;
str_time.Format("%.3d:%.2d:%.2d.%.3d",
input_time/3600000,
(input_time%3600000)/60000,
(input_time%60000)/1000,
input_time%1000);
return str_time;}
.
- Follow-Ups:
- Re: Converting String to Time
- From: Atul
- Re: Converting String to Time
- Prev by Date: Message Mapping for a template class
- Next by Date: Re: object not being created
- Previous by thread: Message Mapping for a template class
- Next by thread: Re: Converting String to Time
- Index(es):
Relevant Pages
|