Convert between different time duration units
Convert time measurements between units instantly with our free online time converter. This tool helps students, project managers, and anyone needing to convert between seconds, minutes, hours, days, weeks, and more. Simply enter a value and get conversions to all time units in real-time.
• 1 minute = 60 seconds
• 1 hour = 60 minutes = 3,600 seconds
• 1 day = 24 hours = 1,440 minutes = 86,400 seconds
• 1 week = 7 days = 168 hours
• 1 month (30 days) = 720 hours = 2,592,000 seconds
• 1 year (365 days) = 8,760 hours = 31,536,000 seconds
Convert between different units of time duration, from nanoseconds to years.
Supported units:
Note: Month is calculated as 30 days and year as 365 days for simplicity.
Time converter transforms between seconds, minutes, hours, days, weeks, months, and years. While basic conversions are straightforward, edge cases (leap years, varying month lengths, time zones) add complexity. Essential for scheduling, project planning, and data analysis.
Most time conversions use fixed factors: 60 seconds/minute, 60 minutes/hour, 24 hours/day, 7 days/week. However, months (28-31 days) and years (365 or 366 days) vary. Standard conversions use averages: 1 month ≈ 30.437 days, 1 year = 365.25 days.
Exact conversions: 1 minute = 60 seconds, 1 hour = 3600 seconds, 1 day = 86400 seconds, 1 week = 604800 seconds. Approximate: 1 month ≈ 2,629,746 seconds (average), 1 year ≈ 31,557,600 seconds (365.25 days). Leap seconds are occasionally added to UTC.
Convert project durations between hours, days, and weeks.
2000 hours = 83.3 daysConvert measurements in seconds to more readable units.
Calculate time spans for meetings, events, deadlines.
Normalize timestamps to consistent units for comparison.
const timeToSeconds = {
'nanosecond': 0.000000001,
'microsecond': 0.000001,
'millisecond': 0.001,
'second': 1,
'minute': 60,
'hour': 3600,
'day': 86400,
'week': 604800,
'month': 2629746, // average
'year': 31557600 // 365.25 days
};
function convertTime(value, fromUnit, toUnit) {
const seconds = value * timeToSeconds[fromUnit];
return seconds / timeToSeconds[toUnit];
}
// Examples
convertTime(90, 'minute', 'hour'); // 1.5
convertTime(1, 'year', 'day'); // 365.25
convertTime(1000, 'millisecond', 'second'); // 1
// Human-readable duration
function formatDuration(seconds) {
const d = Math.floor(seconds / 86400);
const h = Math.floor((seconds % 86400) / 3600);
const m = Math.floor((seconds % 3600) / 60);
const s = seconds % 60;
return `${d}d ${h}h ${m}m ${s}s`;
}Time conversion uses fixed factors except for months/years which use averages. For precise date calculations, use date libraries.
Use time converter for quick unit conversions, project duration estimates, and scientific calculations. For precise calendar calculations, use proper date/time libraries.
A common year has 31,536,000 seconds (365 × 24 × 60 × 60). Accounting for leap years, the average year is 31,557,600 seconds (365.25 days). Leap years have 31,622,400 seconds.