CMB covered the Java case, in .NET specifically in the AR System API -- you can 
make use of ...
 
BMC.ARSystem.DateValue, 
BMC.ARSystem.TimeOfDayValue classes
and the general System.DateTime class as below:
         System.DateTime date = new DateTime(1970, 1, 1, 0, 0, 0);
         date = date.AddSeconds(unixTime);
Also TimeSpan structure allow you to do stuff with time conversions.
If you're interested in dealing with AR System Date Only values (that span 
prety long date range -- few thousand BC to 4000AD or some thing like that), 
then you can make use of BMC.ARSystem.Server.JulianDateToDate/DateToJulianDate 
methods.
 
regards
Appajee
 
 

________________________________

From: Action Request System discussion list(ARSList) on behalf of Opela, Gary L 
Contr OC-ALC/ITMA
Sent: Wed 11/21/2007 12:54 PM
To: [email protected]
Subject: Java and Epoch Seconds


** 

Does anyone know what libraries, and where I can get them, to do epoch date 
conversions in native java, .net, or C code? I would prefer .net.

 

Thanks,


Gary Opela, Jr

Sr. Remedy Developer

Leader Communications, Inc.

405 736 3211

 

__20060125_______________________This posting was submitted with HTML in it___ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to