## conversion of unix time format

conversion of unix time format
# 1
02-28-2008
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
 sari View Public Profile for sari Find all posts by sari
# 2
03-03-2008
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
 jgt View Public Profile for jgt Visit jgt's homepage! Find all posts by jgt
# 3
03-03-2008
Dear Im new in this field ,, so feel difecult to undersatand the FORUMS

still i have keen intrest..................
 Khalid Saleem View Public Profile for Khalid Saleem Find all posts by Khalid Saleem

## How to Understand the UNIX Time Format?

How to understand the unix time format as here i have pasted this is a unix time 1402565420 and its 3:00 PM here but its give this Output as long number How can i make it to understand format as i have 3:00 PM Normal time format <----3:00PM = 1402565420----> Unix Time Will Any one Explain to...

## Change the date and time format in UNIX script.

Hi, I am extracting a date string from the source file like this : 06/05/2014 16:04:00 I want to change it to 05-JUN-14 04.05.00.000000000 PM I basically store the date in a variable. I got solutions to change date in dd-mmm-yyyy format using tr but I guess it works only with the "date"...

## Format conversion

Can you help me get the desired output? Below is the input CONA= 0. 5. 10. 15. 20. 25. 30. 35. 40. 45. 50. 55. 60. 65. 70. 75. 80. 85. 90. 95. 100. 105. 110. PLANA= 0. 15. 30. 45. 60. 75. 90. 105. 120. 135. 150. 165. 180. ITABLE= 87.3 171.4 242.9 297.6 322.8 325.6 306.8 284.5 273.4 272.2 270.2...

## Date conversion from 24 hr format to 12 hr format

hi i want to convert date procured from sone operation which will be in 24hr format to 12 hr format displaying AM and PM # date -d @1362545068 Tue Mar 5 23:44:28 EST 2013 # this Tue Mar 5 23:44:28 EST 2013 i want to convert it so that output is as below Tue...

## Military type format date/time conversion

Hello All, I have a requirement to convert a 12 hour format to 24 hour time format and the sample input /out put is below Input Time format : Nov 2 2011 12:16AM Out Put Format : Nov 2 2011 0:16 Input : Nov 2 2011 4:16PM Out Put: Nov 2 2011 16:16 I have done this using a...

## Changing the format of the unix time command

Hello. I use time in order to calculate the execution time of a program. The output format is: real 0m0.059s user 0m0.028s sys 0m0.004s Is there a simple and elegant way to add user and sys together, and convert to milliseconds? Thanks a lot!

## Help: transform unix time format to standard

Hello All, Do you have any idea, how can I transform the unix time format to standard: time_last_login=1268057983 :confused: I would like to use the transformation in a AIX shell script :(

## Convert Epoch time format to normal date time format in the same file

I have a file named "suspected" with series of line like these : {'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''} {'protocol': 17, 'service': 'BitTorrent...

## Number format conversion in UNIX

Hi All, I want to convert Scientific number format into normal number format using unix script or using any command of unix. e.g 1.55397e+09 into 1553970000 Thanks in advance Kamal

## Time conversion in Unix

Hi, Is there any way to get current time for a particular country using any unix command ? I mean, If i want to find out current time in US or UK or anything .... Any command or library routine available for that? How it can be done in C on Unix? Can anybody help me? Thanks --...