util.host/timestamp

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


Unix Timestamp: 1627074355

2021-07-23 21:05:55 UTC

  • Day of Year: 203
  • Week of Year: 29
  • Month: July (31 Days)
  • Weekday: Friday (Day 5)
  • Leap Year: No

Local Time: 2021-07-23 21:05:55 UTC

Summertime (DST): No


Relative to 1627074355

Day Start 2021-07-23 1626998400 -75955 s
Tomorrow 2021-07-24 1627084800 10445 s
Yesterday 2021-07-22 1626912000 -162355 s
Last Monday 2021-07-19 1626652800 -421555 s
Next Monday 2021-07-26 1627257600 183245 s
Month Start 2021-07-01 1625097600 -1976755 s
Next Month 2021-08-01 1627776000 701645 s
Year Start 2021-01-01 1609459200 -17615155 s
Next Year 2022-01-01 1640995200 13920845 s

Current Timestamps

Now 2021-07-23 1627074355 1627074355 s
Today 2021-07-23 1626998400 1626998400 s
Tomorrow 2021-07-24 1627084800 1627084800 s
Yesterday 2021-07-22 1626912000 1626912000 s
Last Monday 2021-07-19 1626652800 1626652800 s
Next Monday 2021-07-26 1627257600 1627257600 s
This Month 2021-07-01 1625097600 1625097600 s
Next Month 2021-08-01 1627776000 1627776000 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('{{ $timestamp }}');
echo $dt->format('r');
MySQL
select from_unixtime(table.fieldname);

... if the timestamp is in table.fieldname. You can convert the timestamp direct when you enter the number and not the field name, for example: select from_unixtime(1627074355);

Javascript
let dt = new Date(1627074355 * 1000); // JS works with milliseconds
console.log(dt.toUTCString());
Python
from datetime import datetime
print(datetime.utcfromtimestamp(1627074355).strftime('%c'))
Java
java.util.Date dt = new java.util.Date((long) 1627074355 * 1000);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSXXX");
System.out.println(sdf.format(dt));
C#
DateTimeOffset dt = DateTimeOffset.FromUnixTimeSeconds(1627074355);
dt.ToString("F")
Convert a timestamp in Microsoft Excel
=((((A1+0)/60)/60)/24)+DATE(1970,1,1);

...if the timestamp is in field A1. The +0 is the timezone offset in seconds. Change this if you want the calc the unix timestamp for a different timezone (eg.: A1+3600).