devTest.run

  • WebSocket Tools
    • WebSocket Testing Tool
    • SSE Testing Tool
    • Sparkplug B Simulator
    • MQTT WebSocket Client
  • OCPP Simulators
    • OCPP 1.6 Simulator
    • OCPP 2.0 Simulator
  • Encryption Tools
    • AES Encryption / Decryption
    • DES Encryption / Decryption
    • RSA Encryption / Decryption
  • Conversion Tools
    • Unix Timestamp
    • Time Zone Converter
    • Color Converter
    • Number Base Converter
    • URL Encoder / Decoder
    • Unicode Converter
    • PDF to Image
    • Morse Code
    • Bandwidth Converter
    • IOPS Calculator
    • RAID Calculator
    • Speed Converter
  • Other Tools
    • Image Compressor
    • QR Code Generator
    • Regex Tester
    • Quartz Cron Generator
    • JSON Formatter
    • JSON / XML Converter
    • JSON / YAML Converter
    • JSON to Go Struct
  • Hash Tools
    • Text Hash Calculator
    • File Hash Calculator
中文 English
  1. Home
  2. Conversion Tools
  3. Unix Timestamp
Current time
Unix Timestamp
Date and time
Get a Unix timestamp in your programming language:
Language Seconds Milliseconds
JavaScript Math.round(new Date() / 1000) new Date().getTime()
Java System.currentTimeMillis() / 1000 System.currentTimeMillis()
Python int(time.time()) int(time.time() * 1000)
Go time.Now().Unix() time.Now().UnixNano() / 1e6
PHP time() (int)(microtime(true) * 1000)
Ruby Time.now.to_i (Time.now.to_f * 1000).to_i
C# DateTimeOffset.UtcNow.ToUnixTimeSeconds() DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
Swift NSDate().timeIntervalSince1970 NSDate().timeIntervalSince1970 * 1000
Objective-C [[NSDate date] timeIntervalSince1970] [[NSDate date] timeIntervalSince1970] * 1000

devTest.run

Technology changes the world

Developer Community

  • AssetRise
  • AssetRise Web
  • AssetRise MCP
  • Hugging Face
  • CSDN

Site Navigation

  • WebSocket Testing Tool
  • SSE Testing Tool
  • Sparkplug B Simulator
  • MQTT WebSocket Client
  • OCPP 1.6 Simulator
  • OCPP 2.0 Simulator

Feedback

Your suggestions help us keep improving. Share feedback

Scan to join our WeChat group
QR code to join our WeChat group
© devTest.run All rights reserved