// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   TDatime.java

package hep.rootio.reps;

import hep.rootio.RootInput;
import hep.rootio.implementation.HollowRootObject;
import hep.rootio.implementation.SpecificRootObject;

import java.io.IOException;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class TDatime extends SpecificRootObject
{

    public TDatime()
    {
    }

    public void read(RootInput in)
        throws IOException
    {
        readMembers(in, 0);
    }

    protected Object createProxy()
    {
        int fDatime = ((Number)get("fDatime")).intValue();
        int year = (fDatime >> 26) + 1995;
        int month = (fDatime << 6) >> 28;
        int day = ((fDatime << 10) >> 27) + 1;
        int hour = (fDatime << 15) >> 27;
        int min = (fDatime << 20) >> 26;
        int sec = (fDatime << 26) >> 26;
        return (new GregorianCalendar(year, month, day, hour, min, sec)).getTime();
    }

    public static String getJavaType()
    {
        return "java.util.Date";
    }
}

 

Ads help maintain this website.