+ 2
How to calculate how many seconds are there in a month?
Please help me with the programming ...I m beginner so help
7 Respostas
+ 5
seconds_per_month = days_per_month * hours_per_day * minutes_per_hour * seconds_per_minute
+ 5
Hi! Its very easy, you must solved 4 problems:
1. How many seconds in 1 minutes?
2. How many minutes in 1 hour?
3. How many hours in 1 day?
4. How many days in 1 month?
+ 4
1 minute = 60 seconds
Hour = 60 minutes = 3,600 seconds. (60*60)
Day = 24 hours = 1440 minutes = 86,400 seconds. (24*60*60)
Week = 7 days = 168 hours = 10080 minutes = 604800 seconds.(7*24*60*60)
Month = 30 days = 720 hours = 43200 minutes = 2592000 seconds. (30*24*60*60)
+ 3
Mohamed Ahmed Al-Shrafi can we always assume that a month has 30 days?
+ 2
Mohamed Ahmed Al-Shrafi yes 30days month
+ 1
Sonic
Yes
+ 1
Mohamed Ahmed Al-Shrafi but as Jan Markus pointed out, a month can also have 28, 29 or 31 days.