Click here to Skip to main content
15,891,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have data in seconds i want to convert day,hours,minutes,sec please help me.
Posted
Updated 3-Dec-14 18:14pm
Comments
syed shanu 4-Dec-14 0:36am    
Can you provide your sample data.give detail of your actual data and in what format you want the result.Improve you question with more detail.
Sinisa Hajnal 4-Dec-14 2:35am    
Also, why are you asking here? This is basic math problem and with easily found online solutions. Lazyness.

1 solution

Hi,

if you are using C#,
TimeSpan class will help you!

e.g.
C#
int seconds = 24524542;

TimeSpan ts = TimeSpan.FromSeconds(seconds);


Best regards,
Stephan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900