util.host/timestamp

Just another unix timestamp (epoch time) and timezone converter.


Unix Timestamp: 1617901381

2021-04-08 17:03:01 UTC

  • Day of Year: 97
  • Week of Year: 14
  • Month: April (30 Days)
  • Weekday: Thursday (Day 4)
  • Leap Year: No

Local Time: 2021-04-08 17:03:01 UTC

Summertime (DST): No


Relative to 1617901381

Day Start 2021-04-08 1617840000 -61381 s
Tomorrow 2021-04-09 1617926400 25019 s
Yesterday 2021-04-07 1617753600 -147781 s
Last Monday 2021-04-05 1617580800 -320581 s
Next Monday 2021-04-12 1618185600 284219 s
Month Start 2021-04-01 1617235200 -666181 s
Next Month 2021-05-01 1619827200 1925819 s
Year Start 2021-01-01 1609459200 -8442181 s
Next Year 2022-01-01 1640995200 23093819 s

Current Timestamps

Now 2021-04-23 1619174508 1619174508 s
Today 2021-04-23 1619136000 1619136000 s
Tomorrow 2021-04-24 1619222400 1619222400 s
Yesterday 2021-04-22 1619049600 1619049600 s
Last Monday 2021-04-19 1618790400 1618790400 s
Next Monday 2021-04-26 1619395200 1619395200 s
This Month 2021-04-01 1617235200 1617235200 s
Next Month 2021-05-01 1619827200 1619827200 s
This Year 2021-01-01 1609459200 1609459200 s
Next Year 2022-01-01 1640995200 1640995200 s

Convert Timestamp Programming Languages

PHP
$dt = new Datetime('@1617901381');
echo $dt->format('r');
MySQL
select from_unixtime(1617901381);
Javascript
let dt = new Date(1617901381 * 1000); // JS works with milliseconds
console.log(dt.toUTCString());
Python
from datetime import datetime
print(datetime.utcfromtimestamp(1617901381).strftime('%c'))
Java
java.util.Date dt = new java.util.Date((long) 1617901381 * 1000);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSXXX");
System.out.println(sdf.format(dt));
C#
DateTimeOffset dt = DateTimeOffset.FromUnixTimeSeconds(1617901381);
dt.ToString("F")