Re: Time

"Angelos Markos" <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Organization University of Macedonia
Message-ID <004001c34487$d90716a0$e8d2fbc3@papadimitriou>
Oops, the number 360 is 3600.

----------------------------------------------
Angelos I. Markos
Phd Student 
Department of Applied Informatics
University of Macedonia, Thessaloniki
Greece

  ----- Original Message ----- 
  From: Angelos Markos 
  To: [email protected] 
  Sent: Monday, July 07, 2003 3:58 PM
  Subject: Re: [Delphi] Time


  Try the following function:

  function GetTimeInSec:Integer;
  var h,m,s,ms:Word;
    begin
      DecodeTime(Time,h,m,s,ms);
      Result:=h*360+m*60+s;
    end;

  ----------------------------------------------
  Angelos I. Markos
  Phd Student 
  Department of Applied Informatics
  University of Macedonia, Thessaloniki
  Greece

  ----- Original Message ----- 
    From: Eduardo Meyer 
    To: [email protected] 
    Sent: Monday, July 07, 2003 3:51 PM
    Subject: Re: [Delphi] Time


    Hi Mike,

        I'm sorry, I think I haven't expressed that in the right way.
    Imagine that I have a Time value as (12:54:05).
    I would like to know know many seconds does it has. 

    12:43:05 = 45785 seconds

    That's it.

    Is there a function that do it?

    Thanks a lot!


    Eduardo
      ----- Original Message ----- 
      From: Shkolnik M. 
      To: [email protected] 
      Sent: Monday, July 07, 2003 9:40 AM
      Subject: RE: [Delphi] Time


      >Is there a function which convert a time data as ( 1:00:03  ) in seconds?
      You need the FormatDateTime function:
      str := FormatDateTime('hh:nn:ss', yourTimeVar);

      With best regards, Mike Shkolnik
      EMail: [email protected]
      http://www.scalabium.com

            Yahoo! Groups Sponsor 
                  ADVERTISEMENT
                 
           
           

      Delphi Tips & Tutorials...
      http://www.delphicollection.com
      ---------------------------------------------------------------
      Unsubscribe:[email protected]
      List owner:[email protected]
      --------------------------------------------------------------- 

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


    [Non-text portions of this message have been removed]


          Yahoo! Groups Sponsor 
                ADVERTISEMENT
               
         
         

    Delphi Tips & Tutorials...
    http://www.delphicollection.com
    ---------------------------------------------------------------
    Unsubscribe:[email protected]
    List owner:[email protected]
    --------------------------------------------------------------- 

    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


  [Non-text portions of this message have been removed]


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       

  Delphi Tips & Tutorials...
  http://www.delphicollection.com
  ---------------------------------------------------------------
  Unsubscribe:[email protected]
  List owner:[email protected]
  --------------------------------------------------------------- 

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save on Coral Calcium. Get Better Health and
Stronger Bones. Seen on TV
http://www.challengerone.com/t/l.asp?cid-2805&lp=calcium2.asp
http://us.click.yahoo.com/9gf46B/EfUGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.