Class Epoch

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Epoch
extends JFrame

Small swing-based utility to convert timestamps (seconds since epoch) to readable dates and vice versa. Supports at-style time specification (like "now-2d", "noon yesterday") and other human-readable data formats:

  • MM/dd/yy HH:mm:ss
  • dd.MM.yy HH:mm:ss
  • dd.MM.yy HH:mm:ss
  • MM/dd/yy HH:mm
  • dd.MM.yy HH:mm
  • yy-MM-dd HH:mm
  • MM/dd/yy
  • dd.MM.yy
  • yy-MM-dd
  • HH:mm MM/dd/yy
  • HH:mm dd.MM.yy
  • HH:mm yy-MM-dd
  • HH:mm:ss MM/dd/yy
  • HH:mm:ss dd.MM.yy
  • HH:mm:ss yy-MM-dd
The current timestamp is displayed in the title bar :)
See Also:
Serialized Form
  • Method Details

    • main

      public static void main​(String[] args)
      Main method which runs this utility.
      Parameters:
      args - Not used.