Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello All,

I need to take user input value into the system and convert it to a time format.

as an example :- if user input value as 3, i need to convert this value into 3 hours.

Is this possible in shell scripting.

Thank you,
Posted
Updated 29-Sep-13 1:22am
v2
Comments
Richard MacCutchan 27-Sep-13 13:24pm    
What is the formula for converting 5 into 3 hours?
ridoy 27-Sep-13 13:46pm    
totally agree,:))
Zoltán Zörgő 27-Sep-13 14:08pm    
Try to give a reasonable example.
[no name] 27-Sep-13 14:33pm    
Yes it is possible. You will have to figure out how you think that 5 translates to 3 hours though, then write a formula for your script.
OriginalGriff 27-Sep-13 14:34pm    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
There is no obvious conversion from "5" to "3 hours" so until you explain in rather more detail what you need we can't help you!
Use the "Improve question" widget to edit your question and provide better information.

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