memory usage

sktsee sktsee at tulsaconnect.com
Thu Jan 28 15:21:28 UTC 2010


On Thu, 28 Jan 2010 20:11:55 +0530, Kaushal Shriyan wrote:

> Hi,
> 
> I have the below entries in a file. The first column is time in secs
> since epoch and the second column is memory usage in Gigs
> 
> 1261901500: 7.0241442488e+09
> 1261927850: 6.1331177687e+09
> 1261954200: 6.6253775790e+09
> 1261980550: 6.7891714050e+09
> 1262006900: 6.4857346071e+09
> 1262033250: 6.3970871424e+09
> 1262059600: 6.0884974525e+09
> 1262085950: 6.7245833719e+09
> 1262112300: 6.6445741304e+09
> 1262138650: 6.2659324617e+09
> 
> is there a easy way to convert 1261901500 in a human readable format.
> 
> 

Using the first item as an example

For local time
$ date -d @1261901500
Sun Dec 27 02:11:40 CST 2009

For UTC
$ date -ud @1261901500
Sun Dec 27 08:11:40 UTC 2009

man date for more formatting options

-- 
sktsee





More information about the ubuntu-users mailing list