Unix Timestamp Converter
The unix time stamp is now. Stop Refresh
Java | time |
JavaScript | Math.round(new Date().getTime()/1000) getTime() The unit that returns the value is milliseconds |
Microsoft .NET / C# | epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000 |
MySQL | SELECT unix_timestamp(now()) |
Perl | time |
PHP | time() |
PostgreSQL | SELECT extract(epoch FROM now()) |
Python | import time -> time.time() |
Ruby | Get the Unix timestamp: Time.now or Time.new Display the Unix timestamp: Time.now.to_i |
SQL Server | SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE()) |
Unix / Linux | date +%s |
VBScript / ASP | DateDiff("s", "01/01/1970 00:00:00", Now()) |
Other operating systems (if Perl is installed in the system) |
Command line: perl -e "print time" |