com.googlecode.mp4parser.authoring
Class DateHelper

java.lang.Object
  extended by com.googlecode.mp4parser.authoring.DateHelper

public class DateHelper
extends Object

Converts ISO Dates (seconds since 1/1/1904) to Date and vice versa.


Constructor Summary
DateHelper()
           
 
Method Summary
static long convert(Date date)
          Converts a date as long to a mac date as long
static Date convert(long secondsSince)
          Converts a long value with seconds since 1/1/1904 to Date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateHelper

public DateHelper()
Method Detail

convert

public static Date convert(long secondsSince)
Converts a long value with seconds since 1/1/1904 to Date.

Parameters:
secondsSince - seconds since 1/1/1904
Returns:
date the corresponding Date

convert

public static long convert(Date date)
Converts a date as long to a mac date as long

Parameters:
date - date to convert
Returns:
date in mac format


Copyright © 2012. All Rights Reserved.