com.alachisoft.ncache.ncactivate.license.SystemTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-activate Show documentation
Show all versions of nc-activate Show documentation
internal package of Alachisoft.
package com.alachisoft.ncache.ncactivate.license;
import java.util.GregorianCalendar;
import java.util.TimeZone;
/*
* SystemTime.java
*
* Created on September 29, 2006, 9:52 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
* @author Administrator
*/
public class SystemTime {
public short wYear;
public short wMonth;
public short wDayOfWeek;
public short wDay;
public short wHour;
public short wMinute;
public short wSecond;
public short wMilliseconds;
/** Creates a new instance of SystemTime */
/**
* Creates a new instance of SystemTime
*/
public SystemTime() {
GregorianCalendar dte = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
// wYear = (short)dte.get(Calendar.YEAR);
// wMonth = (short)dte.get(Calendar.MONTH);
// wDay = (short)dte.get(Calendar.DAY_OF_MONTH);
// wHour = (short)dte.get(Calendar.HOUR_OF_DAY);
// wMinute = (short)dte.get(Calendar.MINUTE);
// wSecond = (short)dte.get(Calendar.SECOND);
// wMilliseconds = 200;
wYear = (short) dte.get(dte.YEAR);
wMonth = (short) dte.get(dte.MONTH);
wDayOfWeek = (short) dte.get(dte.DAY_OF_WEEK);
wDay = (short) dte.get(dte.DAY_OF_MONTH);
wHour = (short) dte.get(dte.HOUR_OF_DAY);
wMinute = (short) dte.get(dte.MINUTE);
wSecond = (short) dte.get(dte.SECOND);
wMilliseconds = 200;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy