![]() |
|
|
|
|
|||||||
| Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Conversion of .zip to .tar.Z format | eagercyber | Shell Programming and Scripting | 2 | 03-26-2008 04:11 AM |
| Number format conversion in UNIX | kamal_418 | Shell Programming and Scripting | 1 | 01-09-2008 12:12 AM |
| Flat File Conversion Format | Loobian | UNIX for Advanced & Expert Users | 4 | 05-02-2006 04:05 AM |
| Binary to text format conversion | manjunath | High Level Programming | 5 | 11-13-2002 09:10 PM |
| Time conversion in Unix | kamlakar | UNIX for Advanced & Expert Users | 1 | 04-22-2002 09:55 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
conversion of unix time format
help me to convert unix time format into windows time format using java
i have linux time ex. 1075329297.572 |
| Forum Sponsor | ||
|
|
|
|||
|
The number you have represents the number of seconds since Jan 1 1970.
So: 1075329297.572/(24*60*60)=12445 days And from foxpro (01/01/1970) + 12445 = jan 28 2004 12445*86400=1075248000 Then 1075329297.572 - 1075248000 = 81297.572 81297.572/3600=22 hours 81297.572-(3600*22)=2097.572 2097.572/60=34 minutes 2097.572 - (34*60) = 47.572 seconds End result Jan 28 2004 22:34:47.572 |
| Thread Tools | |
| Display Modes | |
|
|