Skip i'r prif gynnwys

Sut i drosi rhwng dyddiad a stamp amser Unix yn Excel?

Gelwir stamp amser Unix hefyd yn amser Epoch neu amser POSIX a ddefnyddir yn wyllt mewn llawer o systemau gweithredu neu fformatau ffeil. Mae'r tiwtorial hwn yn sôn am y trawsnewid rhwng dyddiad a stamp amser Unix yn Excel.

Trosi dyddiad i stamp amser

Trosi dyddiad ac amser yn stamp amser

Trosi stamp amser hyd yn hyn

Mwy o diwtorialau am drosi amser dyddiad ...


swigen dde glas saeth Trosi dyddiad i stamp amser

I drosi'r dyddiad yn stamp amser, gall fformiwla ei weithio allan.

Dewiswch gell wag, mae'n debyg Cell C2, a theipiwch y fformiwla hon = (C2-DYDDIAD (1970,1,1)) * 86400 i mewn iddo a gwasgwch Rhowch allwedd, os oes angen, gallwch gymhwyso ystod gyda'r fformiwla hon trwy lusgo'r handlen autofill. Nawr mae ystod o gelloedd dyddiad wedi'u trosi'n stampiau amser Unix.
doc-trosi-dyddiad-unix-1


2 Clic i Drosi Amser yn Oriau Degol, Munudau neu Eiliadau

Mae adroddiadau Amser Trosi nodwedd o Kutools ar gyfer Excel Gall eich helpu i drosi amseroedd yn gyflym i oriau degol, munudau, neu eiliadau a gosod y canlyniad yn y gyrchfan wreiddiol neu un arall.

amser trosi doc 1

swigen dde glas saeth Trosi dyddiad ac amser yn stamp amser

Mae fformiwla a all eich helpu i drosi dyddiad ac amser i stamp amser Unix.

1. Yn gyntaf, mae angen i chi deipio'r Amser Cyffredinol Cydgysylltiedig i mewn i gell, 1/1/1970. Gweler y screenshot:
doc-trosi-dyddiad-unix-2

2. Yna teipiwch y fformiwla hon = (A1- $ C $ 1) * 86400 i mewn i gell, gwasg Rhowch allwedd, yna os oes angen, llusgwch y handlen autofill i ystod gyda'r fformiwla hon. Gweler y screenshot:
doc-trosi-dyddiad-unix-3

Awgrymiadau: Yn y fformiwla, A1 yw'r gell dyddiad ac amser, C1 yw'r amser cyffredinol cyfesurynnol y gwnaethoch chi ei deipio.


swigen dde glas saeth Trosi stamp amser hyd yn hyn

Os oes gennych chi restr o stamp amser sydd ei angen i drosi hyd yma, gallwch chi wneud fel y nodir isod:

1. Mewn cell wag wrth ymyl eich rhestr stampiau amser a theipiwch y fformiwla hon =(((A1/60)/60)/24)+DATE(1970,1,1), y wasg Rhowch allwedd, yna llusgwch yr handlen llenwi auto i ystod sydd ei hangen arnoch chi.
doc-trosi-dyddiad-unix-4

2. Yna de-gliciwch y celloedd a ddefnyddiodd y fformiwla, a dewis Celloedd Fformat o'r ddewislen cyd-destun, yna yn y popping Celloedd Fformat deialog, o dan N.umber tab, cliciwch dyddiad yn y Categori rhestr, yna dewiswch y math o ddyddiad yn yr adran gywir.
doc-trosi-dyddiad-unix-5

3. Cliciwch OK, nawr gallwch weld bod amserlenni Unix wedi'u trosi'n ddyddiadau.
doc-trosi-dyddiad-unix-6

Nodiadau:

1. Mae A1 yn nodi'r gell stamp amser sydd ei hangen arnoch chi.

2. Gall y fformiwla hon hefyd ei defnyddio i drosi cyfresi stamp amser i ddyddiad ac amser, dim ond fformatio'r canlyniad i'r fformat dyddiad ac amser.

3. Mae'r fformiwla uchod yn trosi rhif 10 digid i amser dyddiad safonol, os ydych chi am drosi rhif 11 digid, neu rif 13 digid, neu rif 16 digid i amser dyddiad safonol yn Excel, defnyddiwch y fformiwla fel a ganlyn:

Trosi rhif 11 digid hyd yn hyn: =A1/864000+DYDDIAD(1970,1,1)

Trosi rhif 13 digid hyd yn hyn: =A1/86400000+DYDDIAD(1970,1,1)

Trosi rhif 16 digid hyd yn hyn: =A1/86400000000+DYDDIAD(1970,1,1)

Ar gyfer hydoedd gwahanol o rifau yr oedd angen eu trosi i datetime, newidiwch nifer sero'r rhannydd yn y fformiwla i gael y canlyniad yn gywir.


Erthyglau Perthynas:

  • Sut i gael gwared ar amser o'r dyddiad yn Excel?
    Os oes colofn o ddyddiad gyda stamp amser, fel 2/17/2012 12:23, ac nad ydych chi am gadw'r stamp amser ac eisiau tynnu'r amser 12:23 o'r dyddiad a gadael y dyddiad yn unig 2/17/2012. Sut allech chi gael gwared ar amser yn gyflym mewn celloedd mulitple yn Excel?

  • Sut i gyfuno dyddiad ac amser yn un gell yn Excel?
    Mae dwy golofn mewn taflen waith, un yw'r dyddiad, a'r llall yn amser. A oes unrhyw ffordd i gyfuno'r ddwy golofn hon yn gyflym yn un, a chadw'r fformat amser? Nawr, Mae'r erthygl hon yn cyflwyno dwy ffordd yn Excel i gyfuno colofn dyddiad a cholofn amser yn un a chadw'r fformat amser.

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How Define a Custom Date Format: yyyy-mm-dd hh:mm:ss

yyyy: Year with four digits.
mm: Month with two digits (01-12).
dd: Day of the month with two digits (01-31).
hh: Hour with two digits (00-23).
mm: Minute with two digits (00-59).
ss: Second with two digits (00-59).
This comment was minimized by the moderator on the site
Hi, Monero Jeanniton, to format a cell with custom date format, just right-click on the cell, select Format Cells, then type the format into Type of Custom section. See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/format%20cells.png
This comment was minimized by the moderator on the site
Converted 123000 Lines of Data Stamp 13 Digits like a PRO Thanks alot for the tips
This comment was minimized by the moderator on the site
I have a numeric value of 3721719999 which is suppose to display as 00:06:12 (hh:mm:ss). This time represents the time duration of a video file. The date stamp on the file name is 1/18/2014 4:04 pm, if that offers any further information. I extracted the number using Filelist.exe and this was the result. Thanks!
This comment was minimized by the moderator on the site
How to convert 13 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
Hi, Roobanraj, to convert 13 digits timestamp to a standard datetime, you can use the formula as this:=A1/86400000+DATE(1970,1,1), A1 is the cell that contains the 13-digits you want to convert to.
This comment was minimized by the moderator on the site
How to convert 11 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
For converting 11 digits timestamp to a standard datetime, use the formula as this:=A1/864000+DATE(1970,1,1), A1 is the cell that contains the 11-digits you want to convert to.
This comment was minimized by the moderator on the site
how to convert event time stamp to hour
This comment was minimized by the moderator on the site
To convert date for MOODLE the only formula that worked was:


Instead of =(C2-DATE(1970,1,1))*86400

I tried 20/october/1980 and Moodle read 19/october/1980.

I used
=(C2-DATE(1970,1,0))*86400

I tried 20/october/1980 and Moodle read 20/october/1980.
This comment was minimized by the moderator on the site
How to convert 21 digits timestamp to human readable date ?
Could someone help please
E.g., 202002191100506253230
This comment was minimized by the moderator on the site
IF you have an LDAP 18-Digit timestamp such as 132079258679926000 the below formulas will not work. You first have to convert them as they are based in nano seconds from 1/1/1601. The following formula in Excel converts the LDAP to EPOCH to human dates =(((((A1/10000000)-11644473900)/60)/60)/24)+DATE(1970,1,1) where A1 refers to your timestamp location
This comment was minimized by the moderator on the site
Thanks for your supplement.
This comment was minimized by the moderator on the site
One thing to note is that the above is for epoch time in seconds. If you need milliseconds, you need to add a further multiplication / division by 1000. For example, converting from epoch time (milliseconds) to a date would be "=((((A1/1000)/60)/60)/24)+DATE(1970,1,1)".
This comment was minimized by the moderator on the site
Muchas gracias, para mi caso estaba adivinando porque no conocía que tipo de dato venia pero este fue la solución, el dato que me pasaron era con esta forma 1641014648299 y la formula fue esta =((((C2/1000)/60)/60)/24 )+FECHA(1970;1;1) por lo cual si alguien esta en un caso similar al mío puede optar por esta formula.

Esta formula también me sirvió pero solo trae fecha =A1/86400000+FECHA(1970;1;1)
This comment was minimized by the moderator on the site
As a side note, the best way to tell if it's seconds or milliseconds is looking at the length of the field; if it's 10 digits, it's seconds, and if it's 13 digits, it's milliseconds. "=LEN(A1)" will tell you how long the value is.
This comment was minimized by the moderator on the site
If that's too much manual work for you (or you have a list that's mixed between seconds and milliseconds), then you can use the following formula to automatically switch between seconds and milliseconds based on the length of the cell: "=((A1/86400)/IF(LEN(A1)=13,1000,1))+DATE(1970,1,1)".
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations