Skip to content

com_vuzit_Service_epochTime

bmatzelle edited this page Sep 13, 2010 · 1 revision

com.vuzit.Service.epochTime function

Returns the time since the epoch.

Signatures

  • public static int epochTime(Date date)

Parameters

  • Date date : The date to change int epoch time.

Return type

  • long : The seconds since the epoch.

Usage Example


java.util.Date date = new java.util.Date();
long epoch = com.vuzit.Service.epochTime(date);  

System.out.println("Seconds since the epoch: " + epoch);

Clone this wiki locally