Ka whakarerekētia te Unix Timestamp

Ka tahuri i waenganui i tētahi tohu wā Unix me te rā me te wā tangata.

Ko te wā paetata 24-wā e whakamahia ana ina tahuri tētahi rā ki tētahi tātai wā.
Ko te tohu wā Unix
Te rā me te wā UTC
Āhuatanga ā-rohe
ISO 8601 (UTC)
Rā o te wiki

Ka whakahōutia ngā hua i te wā e tātuhi ana.

Mo tēnei tātaitai

the time of the day, the time is the number of seconds since 1 January 1970 UTC. This converter converts an epoch timestamp into a readable UTC and local date, or takes a date and time and returns its epoch value. It handles both seconds and milliseconds, shows the ISO 8601 form, and names the weekday. A staple for developers reading logs, databases and API responses. A unit switch lets you read or produce either. Because seconds-based timestamps and millisecond timestamps used by JavaScript differ by a factor of 1,000, a unit switch lets you read or produce the matching epoch value. Because seconds-based timestamps and millisecond timestamps are different, the unit switch lets you read or produce either.Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a direction:Pick a

Ko nga pātai e pā ana

He tohu wā Unix i roto i ngā takirua, i ngā takirua rānei?

Ko te Unix timestamp tūturu i roto i ngā takiwā mai i te wā o te tau 1970, engari ka whakamahia e JavaScript me ngā API maha ngā milliseconds (1000 × nui ake). Ka whakatū te wae i raro i ngā kōwhiringa hōhonu hei ako i tētahi uara i te āhua kotahi.

He āhua wā te tohu o te tohu wā?

Kāore he rohe wā o tētahi tātaitai wā Unix - he wā tōtika. E whakaatu ana te utauta i taua wā i te UTC me te wā paetata o tōtou kaiwhaiwāhi, ko te take ka rerekē pea ngā raina e rua i runga anō i tōtou UTC.

He pēhea te mōhio au mēnā he wae wae te wae i roto i ngā takirua, i ngā takirua rānei?

E tatau ana i ngā mati: ko te tātai wā o nāianei o ngā takirua tata ki te 10 ngā mati, i te wā e 13 ngā mati te putanga millisecond. Mēnā ka tata te rā i te 1970, ka āhei koe ki te whakaako i tētahi uara millisecond hei takirua.

He aha te wā o Unix?

Ko te wā ko te wāhi kore o te wā Unix: te pō o UTC i te 1 o Hānuere 1970. Ko ia wā kotahi anake te maha o ngā takirua (mihini rānei) i tataua mai i taua wā.

Ka taea e ia te tahuri i tētahi rā ki roto i tētahi tāpa wā?

He. Ka huri te aronga ki te Tātata → Taipara wā, ka tāuru i te rā me te wā paetata, ā, ka hoki mai i te uara wā, kia taea ai e koe te haere huri i tētahi aronga.

He aha te raruraru o te tau 2038?

Ko ngā pūnaha e rokiroki ana i te wā Unix ki tētahi tau tōpū 32-biti i te 19 o Hānuere 2038, i muri i te whakawhānuitanga o te tatau. Ka whakawātea ngā wā 64-biti o nāianei i tēnei, ā, ka whakahaeretia e tēnei tahuri ngā rā i muri iho i te 2038.

❤️ Love Calculator.Free? Whakawehe

𝕏  X Facebook Reddit
API — whakamahi tēnei tātaitai mai i te waehere

E kī ana tēnei tātaitai hei wāhi mutunga kore JSON - kāore he kī e hiahiatia ana. Ka tukuna ngā uara āpure i raro nei hei tohutoro pātai, JSON rānei. Ka pānui te papatono API katoa →

Whakamutunga

GET https://calculator.free/api/v1/unix-timestamp/

curl

curl "https://calculator.free/api/v1/unix-timestamp/?mode=to_date&unix=1700000000"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/unix-timestamp/?" + new URLSearchParams({
    "mode": "to_date",
    "unix": "1700000000"
  }));
const data = await r.json();
console.log(data.results);

Ko ngā hua he whakataunga mō te tohutohu ahuwhānui anake, ehara i te tohutohu moni, rongoā, tāke rānei.