工具狗
时间戳转换器 获取当前时间戳以及时间戳与时间转换
时间戳获取
当前时间:
时间戳转北京时间
北京时间转时间戳

时间戳(Unix timestamp)转换器功能如下:

1、时间戳(Unix timestamp)转换器提供当前时间的时间戳信息,包括以秒为单位的时间戳(10位)和以毫秒为单位的时间戳(13位),只需一键即可复制当前的时间戳信息;

2、时间戳(Unix timestamp)转换器提供时间戳转换北京时间服务,提供时间戳支线转换服务,户只要根据需要输入时间戳信息,就能便捷地将时间戳转换成北京时间;

3、时间戳(Unix timestamp)转换器同时还支持支持北京时间转时间戳服务,只需选择需要的日期信息,就能一键转换成时间戳信息,方便有效!


时间戳是什么意思?什么是时间戳

我们在工作学习的过程中,经常会需要记录一个准确的时间以防篡改,例如我们在拍摄照片时、或者在进行某些证据保存时需要对时间进行存储,这些场景对时间的准确性、唯一性都要求较高,那么是否有一种日期格式能够满足具备唯一性、准确、易读的特点呢?此时,时间戳就应运而生。

简而言之,时间戳就是把格林威治时间1970年01月01日00时00分00秒作为时间基点,然后计算该日期到当前日期的总秒数,从而获得当前日期的时间戳,时间戳是一个长度为10位或者13位的整数。


时间戳10位和13位的区别

时间戳10位是指时间戳精确到秒,包含10位整数

时间戳13位是指时间戳精确到毫秒,包含13位整数

两者之间转换时,只需乘以1000或者除以1000即可转换


各编程语言如何获取时间戳
语言 代码块
Java System.currentTimeMillis() / 1000
DateTime.now().getMillis() / 1000
Python import time
time.time()
.NET/C# (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000
Go import ("time")
int64(time.Now().Unix())
JavaScript Math.round(new Date() / 1000)
Swift NSDate().timeIntervalSince1970
Objective-C [[NSDate date] timeIntervalSince1970]
MySQL SELECT unix_timestamp(now())
SQLite SELECT strftime('%s', 'now')
Erlang calendar:datetime_to_gregorian_seconds(calendar:universal_time())-719528*24*3600.
PHP echo time();
Ruby Time.now.to_i
Groovy (new Date().time / 1000).longValue()
Dart (new DateTime.now().millisecondsSinceEpoch / 1000).truncate()
Lua os.time()
Shell date +%s
大家都在查询
0-1633951401-0 0-1628668726-0 1-20230922072802-0 1-20230709091035-0 1-19931002083147-0 0-1674649801-0 1-20230724194033-0 1-20230505120000-0 0-1693531271017-1 0-1683686079-0 1-20230603080059-0 1-20230703214443-1 1-20991231235959-0 1-20230706102552-0 0-1678349123878-1 1-20230715054706-0 1-20230707034744-0 0-1674213003-0 0-1682509155-0 0-1695725656189-1 1-20230718093332-0 1-20221208031003-0 0-1689134774-0 1-20230708143717-0 0-1672820403-0 0-1695394800000-1 1-20230708012337-0 1-20100813120000-0 0-1684985567-0 0-1695968722882-1 1-20230131170617-0 0-922337203685407-0 1-20230325075002-0 1-20230725161753-0 1-20230924125801-0 1-20230705134543-0 1-20230930221442-0 0-1632990061-0 0-1672984620-0 1-20230927164039-1 1-20230929121325-0 0-1693926000-0 0-57600-0 0-1670233203-0 0-1695227176653-0 0-1694913300000-1 0-1678881602-0 1-20230409021011-0 0-1696065462360-1 1-20230730085441-0 1-20230706100245-0 0-1696013109-0 1-20230118213044-0 1-20230929135236-0 0-1695626266859-0 1-20230715135043-0 0-1687922856468-1 0-1695697070-0 0-1695278226253-0 0-168554880-0 1-20230706031047-0 1-20230705220609-0 1-20230727080424-0 1-20230713000000-1 0-1686888800-0 0-1695388950358-0 1-19700101000000-0 1-20230724223825-0 1-20230715011637-0 0-1678355403-0 0-1682330626-0 1-20230929143110-0 0-1678446003-0 0-1695793813-0 0-1680232954-0 0-1694919847-0 1-20230303141901-1 1-20230707194337-0 0-1676476800-1 1-20380119111407-0 0-1635223090-1 1-20230410075002-0 1-20230929161006-0 1-20230522000502-0 0-1674992403-0 1-20230711084159-0 0-1691570029000-1 0-531770403-1 1-20230117171000-0 0-160108995-0 1-20230308115959-1 1-20230930205538-0 0-1695620589032-1 1-20230930202005-0 1-20230930205111-0 0-1686900240-0 0-1687281357-0 0-1693900903-0 0-1674393003-0 1-20230516172926-0 1-20230725083817-0 0-1701359557-1 0-1671442863-1 1-20230518161620-0 0-1695693710000-1 1-20230705151659-0 1-20230704091807-0 1-20230329025004-0 1-20230509151942-0 1-20230704231046-0 0-1695715201-0 0-521836200000-1 0-67599224-0 1-20230304000000-1 1-20230321080002-0 0-1575025369-0 0-1696233563-0 1-20230929132756-0 0-1695697567-0 0-1696166880-0 0-1368606647-0 1-20230705200021-0 0-1670677203-0 0-1687762297-0 0-1684462863-0 0-250246598400-0 0-1689825599-0 0-1687975200-0 0-1682989200-0 1-20230328165959-0 0-1695871860000-1 0-1574222116-0 1-20230108230004-0 1-20230704074508-0 1-20230709051241-0 1-19460515000000-1 1-20230726151642-0 0-1681796025-0 0-1674638608-0 1-20230331034516-0 1-20230925002752-0 0-2278479300000-1 1-20230712005759-0 1-20230716161226-0 0-1695417829.07-0 0-1687748197-0 0-1696118399-0 1-20230930213815-0 0-1673271002-0 1-20230211004004-0 1-20230309081002-0 1-20230522051840-0 1-20230929161414-0 1-20230725214700-0 1-20230930221932-0 1-20230929170210-0 1-20230710081749-0 1-20230930203830-0 1-20230301204411-0 1-20230710014151-0 1-20230928222741-0 0-1695902444-0 0-1695860408000-1 0-1069710493-0 1-20221203000002-0 1-20230711042722-0 1-20230919191214-1 1-20230725074203-0 0-1417104000-1 0-1696164197-0 1-20230707125509-0 1-20230708221814-0 1-20230725082103-0 1-20230710021000-0 0-1641192141073-1 1-20230624102329-0 0-1677672063000-1 0-1678269600-0 1-20230216170434-0 0-1694361600-0 0-1675762980-0 0-1659700603-0 0-20175.335636-0 1-20230705155014-0 1-20230929171118-0 0-1695963600-0 0-1778461533-0 1-20230726135455-0 0-1684243877.910215675-0 0-1686822208-0 1-20230929124120-0 1-20230122094003-0 1-20230511011620-0 1-20230411114136-1 0-1695709807.37759-0 0-1509891200-0 0-1687935-0 0-1685808060-0 0-1670851803-0 1-20230325230005-0 1-20230519162713-0 0-1695722119-1 1-20230705043034-0 0-1695743100000-1 0-1687955700-0 0-1673354403-0 0-1683182355-0 1-20230929194124-0 0-1620003646-0 1-20230930200925-0 1-20230929170517-0 1-20230925211759-0 1-20230705081251-0 0-1691120288016-1 1-20230709112718-0 1-20230220113002-0 1-20230706070443-0 1-20230722130622-0 1-20230903095841-0 0-1694505673000-1 1-20230926072958-0 1-20230727095220-0 0-1673700603-0 0-1670160602-0 0-1501037957-0 0-1689297510-0 0-1688110680-0 1-20230705121044-0 0-1680058156-0 1-20231031000000-0 1-20231031000000-1 0-1692892800000-1 1-20230119200000-0 1-20230706070302-0 0-1684430292-0 1-20230708040145-0 1-20230707095450-0 1-20220122000000-0 0-1695674620121-1 1-20221221130002-0 0-1686016520-0 0-1682406418-0 0-749521907-0 1-20230710025638-0 0-1687573359-0 1-20230519141210-0 1-20230929153920-0 1-20230705052841-0 0-1680692548-0 1-20230818015948-0 1-20230127132003-0 1-20170227000000-0 1-20230303223831-0 1-20230929133251-0 0-1689485074-0 0-1695890504-0 1-20230930213924-0 1-20230705072941-0 1-20230930215348-0 0-1694879999-0 1-20230704135315-0 1-20230706055353-0 0-1629423779000-0 1-20231002011434-0 1-20230706015218-0 0-11904.12-0 0-1696176707-0 1-20231001235135-0 1-20230716102217-0 1-20230725142857-0 0-2000000000-1 1-20230707052412-0 0-1688656237-0 0-1674736203-0 0-1690265753.991883-1 1-20230613062706-0 1-20230730090301-0 0-1701157257-0 0-743884771-0 1-20230930233129-0 0-1580918340842-1 0-1680652800000-0 0-1696173416-0 0-48465-1 1-20230708123457-0 0-1698307200-0 1-20230709064155-0 0-1696172838-0 0-1691769600-0 0-1695371486-0 1-20230928000-0 0-1695713292000-1 1-20230519140347-0 0-1687851632-0 0-1696169253.837-1 1-20230711041009-0 1-20230925143505-0 0-738452102-0 1-20230724151057-1 1-20230518130414-1 1-20230706022312-0 1-20230724223405-0 0-1696169139-0 1-20211231235929-0 1-20230705114251-0 1-20230710032132-0 0-1696111200000-0 1-20230523131019-1 0-1695694803836-1 0-1696171894266-1 1-20381231115959-0 0-1696152816191-1 0-1695634089000-1 0-1695801591-0 0-1695871362207-0 1-20230707010007-0 0-22019155355000-0 1-20230921103826-1 1-20230902155441-0 1-20230616145639-0 0-1393776-0 0-1695894098-1 0-1688572800-0 1-20350325000000-0 1-20230219105002-0 1-20231002003807-0 0-1696219788-0 1-170203455-1 1-2023092090446-0 0-1690699185-0 0-1696220057-0 0-1690531499-0 0-1689567161-0 0-1687772071-0 0-1689912748-0 0-1690527471-0 0-1690506523-0 0-1689905879-0 0-1685774727-0 0-1696220076-0 0-1693382875-0 0-1689567090-0 0-1687772120-0 1-20230724161727-0 0-1695786277-0 0-1695004616-0 1-20230705051117-0 0-1695435958-0 0-1683749009-0 1-20230707044211-0 0-167401144700-0 0-1725811200-0 0-1631760394051-0 0-1686357804-0 1-20231002153232-1 0-1696231966-1 1-20230724103609-1 0-1696232010616-1 0-1696231920890-1 0-1682456400-0 0-1693145383-0 0-1695354518-0 0-1695367467-0 1-20230309084600-0 1-20230629081750-0 0-1693362226-0 0-1695277302-0 0-12132151-1 0-1696180500000-0 0-1684119828-0 1-20230221100000-0 0-1695354677-0 1-20230711055540-0 1-20230628110502-0 0-1683948749-0 0-1546876800-0 1-20230707071731-0 1-20230113091002-0 0-1679051404-0 0-1675872000-0 0-1688006803-0 1-20230501170154-1 1-20221023141026-0 0-1696180500000-1 0-1684120663-0 1-20230929152855-0 0-1695353400000-1 1-20230407104004-0 0-1672137179-0 1-20230725124310-0 1-20230501021714-1 0-1696231544-0 1-20230703080000-0 1-20230703000000-0 0-1696221222-0 0-1696212653-0 0-1696212514-0 0-1696212376-0 0-1696205993-0 0-1696205945-0 0-1696205575-0 0-1696205369-0 1-20221210123002-0 0-1696205146-0 1-20990518114446-1 0-1696204552-0 1-20230926011826-0 1-20231002151921-1 0-1696223833-1 0-1696184680-0 0-1690217043034-1 0-1672502400-1 1-20230417061054-0 1-20230222031003-0 0-1670841003-0 0-1684170390-0 0-1688313945-0 0-1681094172-1 0-1682694000-0 0-1681208434-0 0-1682389153-0 0-1684291947-0 1-20230611150544-0 0-1677547383-0 0-1696204366-0 0-1696204371-0 0-1696184668-0 0-1696184642-0 1-20230929132538-0 0-1696184637-0 0-1696160225-0 0-1696183744-0 0-1696230838124-1 0-1695608400-0 1-20230325234005-0 1-20230724192407-0 0-1689580290-0 0-1696166820-0 1-20230929161822-0 1-20230313023004-0 1-20230927174441-0 0-1696230617521-1 0-1696230617521-0 0-1695597976098-1 1-20230918093000-0 0-1696168941-0 0-1692720000000-1 0-1684904454-0 1-20230705102506-0 0-1695571200000-1 0-1696608000000-1 1-20230414173707542-0 0-1696175116325-1 0-1696175117844-1 0-1696230314105-1 0-1672966555-0 0-1696227309093-1 0-1696216904-0 0-1689821018331-1 0-1695968980-0 1-20230627143809-0 0-1684132204-0 0-9209200509960368598-0 0-1696218203-0 0-1671437403-0 0-1696216189-0 0-1696215978-0 0-1695970800000-1 1-20230725151910-0 1-20230927000020-0 0-1683913160688-1 1-20230523215731-1 0-1695871772-0 1-20230930215759-0 0-1689345693-0 1-20230405103002-0 0-1601252976334-1 0-1695647959-0 0-1696217888895-1 1-20230702164400-0 0-1670331003-0 1-20230313021004-0 0-1684407799-0 0-1683289157-0 1-20230711030315-0 1-20230718045251-0 1-20230706040459-0 0-1682500331-0 1-20230710094332-0 0-1686572113-0 1-20230706110544-0 0-44927-0 0-1492882042-0 0-1695715523021-1 1-20230709003150-0 0-1688052604-0 0-704170206-0 1-20230330103734-0 0-1679562003-0 0-1684723153-0 0-1684285881-0 0-1685267646-0 0-110200-1 0-99991231234500-1 0-1693497600000-1 0-1683712470-0 1-20230707012208-0 1-20230930194138-0 0-1684121551-0 1-20230706105227-0 0-1579481872149-1 1-20230220150944-0 0-1688056412-0 0-1696089599-0 0-1688703229-0 0-1693280284460-1 0-1672395002-0 0-1547468556817-0 1-20230411081002-0 1-20221202113002-0 0-1688646498-0 1-20230705055104-0 1-20230429000000-0 0-1695696540198-1 1-20221209101000-0 1-20230707182410-0 1-20230708095656-0 1-20230725105025-0 1-20231002144234-0 0-1698274083-0 0-1585522978-0 1-20230930201730-0 0-1683783939-0 1-20230725114457-0 0-1645844213-0 1-20230724222631-0 1-20230929151724-0 0-1686097800-0 1-20230410020004-0 1-20230406094541-0 0-1672771424-1 1-20230713063828-0 0-1684688400-0 0-1680429706-0 1-20230205001008-0 1-20230925134011-1 1-20230705101122-0 0-1679649003-0 1-20230526162406-0 1-20230729053238-0 1-20230929144716-0 1-20230228184316-1 0-1695834410-0 1-20230218123002-0 0-1695463200000-1 0-1695802492984-1 0-1694903382135-1
  你可能感兴趣的工具
轻松一刻
    一觉醒来以为自己长高了原来是被子盖横了
分享该工具
https://www.gongjugou.com/kaifa/timestamp/
关于本站
工具狗是一家立足于教育技术理论与实践的网站,力求将先进的理论通过技术手段进行实现,如果您觉得工具好用,欢迎大家分享给好友,您的支持是我们前进的最大动力,感恩!