Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I run gsettings get com.ubuntu.update-manager launch-time the response is 1382579402. What does the value of 1382579402 mean?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That's presumably a time in Unix epoch format, i.e. seconds since 01/01/1970 UTC. It tells you when update manager last ran (see e.g. here).

You can display it in a more user-friendly way with the date utility.

 $ date --date="@1382579402"
Thu Oct 24 03:50:02 CEST 2013

Or perl:

 $ perl -e 'print localtime(1382579402)."\n";'
Thu Oct 24 03:50:02 2013

To get the current time in that format:

 $ date +%s      # note: lowercase "s"
1393760872
share|improve this answer
    
So in this context, it is the date and time I first ran update manager? –  DK Bose Mar 2 at 11:53
1  
No, last time it ran (see e.g. here). –  Mat Mar 2 at 11:54
    
Perfect. Maybe you can add that to the answer :) I'll accept it as soon as I'm able to. –  DK Bose Mar 2 at 11:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.