समय/संख्याएं
Unix Timestamp ↔ तारीख़
Unix टाइम को तारीख़ में कन्वर्ट करें और वापस, किसी भी टाइम ज़ोन (IANA) के सपोर्ट के साथ।
Unix time (epoch time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC. It's the most common way to store time in databases, APIs, and logs, since it's just a single integer with no tie to a specific timezone or date format.
How to use it
- Timestamp → date: paste a number of seconds (or milliseconds) and the tool shows the date and time in your chosen timezone.
- Date → timestamp: pick a date and time to get the matching Unix timestamp.
- The "now" button fills in the current moment instantly — handy for testing an API or grabbing a fresh value.
Common uses
- Reading a created_at or expires_at field from an API response that arrived as a raw number.
- Checking whether a token or session has expired, given an expiry field in seconds since the epoch.
- Building a timestamp for test data or a date filter in a database query.
Things to keep in mind
Mixing up seconds and milliseconds is the most common mistake: JavaScript's Date.now() returns milliseconds, while most Unix APIs use seconds — a factor of 1000 off.
Unix time itself has no timezone — it's always UTC; a timezone is only applied when displaying the date to a person.
इस टूल के बारे में लेख: Unix टाइम: कंप्यूटर 1970 से समय क्यों गिनते हैं
अक्सर पूछे जाने वाले प्रश्न
Unix timestamp क्या है?
यह 1 जनवरी 1970 00:00:00 UTC (Unix एपोक) से बीते सेकंडों की संख्या है। यह संख्या किसी टाइमज़ोन से बंधी नहीं है — टाइमज़ोन केवल किसी व्यक्ति को तारीख दिखाते समय लागू होता है।
सेकंड्स और मिलीसेकंड्स में क्या अंतर है?
JavaScript और कुछ APIs (जैसे Date.now()) timestamp मिलीसेकंड्स में देते हैं, जबकि क्लासिक Unix टाइम सेकंड्स में होता है। इकाई गड़बड़ाने पर तारीख या तो 1970 में आती है, या दूर भविष्य में कहीं — "Units" फ़ील्ड में सही इकाई चुनें।
2038 की समस्या क्या है?
उन सिस्टम्स पर जहां timestamp को साइन्ड 32-बिट इंटीजर के रूप में स्टोर किया जाता है, सेकंड काउंटर 19 जनवरी 2038 को ओवरफ़्लो होगा। आधुनिक 64-बिट सिस्टम्स में यह समस्या नहीं है।
क्या Unix टाइम लीप सेकंड को गिनता है?
नहीं, Unix टाइम में हर दिन हमेशा ठीक 86400 सेकंड का होता है, लीप सेकंड को नज़रअंदाज़ किया जाता है। जिन सिस्टम्स को खगोलीय UTC के साथ सटीक सिंक्रोनाइज़ेशन चाहिए, वे लीप सेकंड को standard Unix timestamp से अलग किसी तंत्र से हैंडल करते हैं।
क्या Unix timestamp नेगेटिव हो सकते हैं?
हाँ, नेगेटिव वैल्यू 1 जनवरी 1970 से पहले की तारीख़ों को दर्शाती हैं। ज़्यादातर आधुनिक सिस्टम ऐसी वैल्यू को सही तरीक़े से हैंडल करते हैं, हालाँकि कुछ पुराने API या लाइब्रेरी इन्हें सपोर्ट नहीं करतीं।