Questions regarding NTP(network time protocol), cron(task scheduler) and the display of date and time in the panels and elsewhere in Ubuntu. This is an overly general tag, avoid using it if possible.

learn more… | top users | synonyms

2
votes
0answers
18 views

Is it possible to put an automatic time stamp on new files created from templates?

I use Python a lot so I have created a template which has all my usual imports to save me typing them out. So far so good. I was wondering now if there is a way to put something in the template that ...
0
votes
1answer
86 views

No Date and Time

When starting up my machine (Ubuntu 14.10) just now I have noticed that the bit in the top bar which tells me the date and time is gone, and I am unable for some strange reason to change the Date ...
0
votes
1answer
50 views

Ubuntu Dubai Date & Time Settings [duplicate]

I am on Ubuntu 14.04 and I reside in Dubai and thus I set up my date and time settings accordingly. However, I do not speak Arabic but Ubuntu insists on displaying the date in Arabic. Other ...
2
votes
0answers
22 views

Calender/Time not showing up in Ubuntu [duplicate]

I recently noticed that the date/time disappared from my desktop. Until now I could see them both in the top-right corner of my system and clicking on it would show up the calender, but now it ...
0
votes
0answers
59 views

Ubuntu server timezone showing incorrect time for my timezone

Working on finally fixing some issues with one of my servers, noticed the time was off by a bit. Ran 'sudo dpkg-reconfigure tzdata' and selected my timezone. The problem is that it does not match ...
6
votes
1answer
191 views

How to add n hours to a specified time?

I'd like to have a time, say 6:45am, and add an amount of hours, say 1.45 hours, to result in another time. So I'd like to add 1.45 hours to 6:45am to get another time. Is there a command line utile ...
0
votes
1answer
25 views

Is there any way to be notified about system events in Ubuntu?

I want to write an application indicator for Unity to show a single number and a tooltip. I want to update this number when the date changes i.e. on 24:00 and I need to update it if computer wakes up ...
0
votes
3answers
56 views

setting date format in menubar on top of desktop

How do I change format? When I open "time & date settings" I find very limited possibilities. So is there any file which sets my date format in clock shown on top of screen? The only thing I need ...
2
votes
1answer
207 views

How can one remove all packages installed after a certain date/time?

On the ninth of November I tried installing the last stable release of BasKet Note Pads which apparently is not supported off the bat because it needs to be ported to QT4 and KDE 4, whatever that ...
1
vote
1answer
39 views

Convert DATETIME in millisecond

I have the Date Time format YYYY-MM-DDThh:mm:ss.sTZD like 2014-11-03T18:54:40.533+05:33333 i have to convert it into milliseconds. i use date -d "$time" +%s0000 but getting error invalid date.
-1
votes
2answers
62 views

Shell Script to check for subdirectory [closed]

A. I used the following code to get the modified date of a file. But this is also selecting the subdirectories and thus returning an error. How can I fix this? for file in $1/*; do echo `stat ...
1
vote
0answers
63 views

How can I change the date of 12h to 24h?

How can I change the date of 12h to 24h of my ubuntu server 14.04.1 LTS? My current locale: $ cat /etc/default/locale LANG="en_GB.UTF-8" LANGUAGE="en_GB:en" Using $ sudo date nnddhhmmyyyy.ss?
0
votes
0answers
107 views

System time keeps changing to some random wrong time

Iam running Ubuntu 14.04. Off lately the system time keeps changing on its own to either a couples of days ahead or behind. I tried checking and most of the people having this issue seems to be ...
0
votes
2answers
30 views

echo statements with commands

I want to create a echo statement in a Bash script that will say "Today is (current date and time)". so far I've tried: today=date echo Today is $today but no luck
0
votes
5answers
2k views

“Date and Time Settings” GUI in Ubuntu 14.04 is not working?

I have been trying to access the Date and Time setting in my Ubuntu 14.04 to modify the time (which is wrong). I click in the hour in the top-right corner of the top bar, and then in "Date & Time ...
1
vote
2answers
74 views

Change the language of date display

I recently installed 14.04, and my date/time display is unnecessarily localized. Upon installation, I chose Colombo as my location: Now the date/time is displayed in localized form (Sinhala ...
1
vote
1answer
82 views

How set the correct hour in Ubuntu Server?

I have an incorrect time in my Ubuntu server, I'm using Ubuntu Server 14.04 When I run date command this is the result: lun 8 set 2014, 08.28.03, CEST The correct hour is 10.40.
0
votes
2answers
141 views

How often is the time/date updated automatically?

I am running Ubuntu 14.04 32-bit in a VMWare VM. I suspended the VM for a weak and then resumed it. I noticed that the time/date was incorrect, likely due to the fact that it was still set to the time ...
-2
votes
1answer
140 views

Change time format in log file

I have squid log file in follow format: 31/Jul/2014:13:44:52 +0400.701 0 172.16.204.59 TCP_DENIED/407 5232 GET http://vec01.maps.yandex.net/tiles? - NONE/- text/html but log analyzer need time ...
3
votes
0answers
162 views

In Xubuntu 14.04.1, Customizing Date & Time Display

In Xubuntu 14.04.1, how do you enlarge the font size of the date and time in the top right panel area?
2
votes
1answer
967 views

How to change the date/time format to English, while preserving my own country's regional settings

I've been using English as my system language, but Greek for regional formats. The thing is I want the date and time to appear in English too, while PRESERVING the rest of my settings in the regional ...
2
votes
1answer
59 views

How to check a folder timestamp?

How to get file information inherent to time: such as last modification time, recent access time and so on. Also I would like to know if it is possible to check all the modification dates of a file ...
0
votes
2answers
399 views

How to change date and time format from Arabic to English

Hi I am using Kubuntu and my language system is english but when I am using date command the output result is arabic format like this جمعه ۱۸ ژوئیه ۱۴، ساعت ۰۲:۳۴:۵۸ (IRDT) what should I do to ...
0
votes
1answer
582 views

Adjust Time & Date settings via teminal [duplicate]

How do I adjust the Time & Date manually via terminal (CLI) on Ubuntu 14.04?
1
vote
1answer
28 views

How do I make an alias that shows only the date?

Exactly as it says. What code should I use to make an alias to show me only the date, and not the time also?
2
votes
2answers
490 views

Convert seconds since epoch to a human readable string

Command date +%s produces 1403568422. Is there an easy way to convert the 1403568422 to a human readable UTC timestamp? python -c "import datetime;print ...
0
votes
0answers
30 views

Daylight savings time glitch since 2007?

I've taken it upon myself since the dates we apply and remove daylight savings time has been changed thanks to good old A'merica, and noticed today what I notice every year: The time changes twice. ...
2
votes
0answers
157 views

how to change calender to persian calender like in kde?

If we set the language support and location in KDE for a special country like my country Iran, it change the calender and date time format for that country usage. Now i need to do so in my Ubuntu ...
1
vote
0answers
30 views

Ubuntu 12.04 Date incorrect on boot

I succumbed and did the update thing to 12.04 on a desktop. I have just about beaten it into submission but have one puzzle still to solve. I have done much searching on the 'net but seems no one ...
0
votes
1answer
62 views

Standard user can change the Date and Time

I am using Ubuntu 12.04 LTS edition. And now I want that I give full right to my Standard user to change the Time and Date accordingly. In my system After shutting down the system for a 4-5 hrs reset ...
2
votes
1answer
54 views

Manual time syncing

Is there a command or some option in KDE environment with which I can manually sync system's time and date with a time server (eg Public Time Server (pool.ntp.org))?
2
votes
1answer
61 views

clock dissapeared from menu

As you can see from the screenshot, I am missing date and time from top menu. Is it stupid april fools joke or...? I am clueless how to put it back. Any help would be appreciated. EDIT Tried the ...
0
votes
2answers
97 views

Time and Date Not Available [duplicate]

My time and date not on the menu bar and the clock is not in the system settings. I ran sudo apt-get install indicator-datetime and received this error: Package indicator-datetime is not available, ...
1
vote
2answers
460 views

Change “date” Command To 12 Hour Time Instead Of 24

When I type "date" in gnome-terminal, or xterm it reads out in 24 hour time, is there any way to make it use 12 hour. According to "date --help" using "%r" should do the trick, but there are no ...
1
vote
1answer
218 views

Handling leap seconds with date

I am running clockspeed-0.62 (DJB software) on Ubuntu 13.10. I have setup timezones so that /usr/share/zoneinfo is a link to /usr/share/right, and my /etc/leapsecs.dat is up-to-date, i.e contains 25 ...
1
vote
3answers
62 views

Time and Date not showing and the options are faded

I like being able to see the date and time in the upper-right hand portion of my screen. Recently, my time and date have disappeared. I tried adjusting Time and Date through System Settings. I noticed ...
3
votes
2answers
2k views

Add seconds to a given date in bash

I have a complete date plus hours and minutes. I would like to add a number of seconds and display the result as a date "day.month.year hour:minute". "date" doesn't seem to be able to add seconds to ...
1
vote
2answers
351 views

How delete files - based on date in filename

I have some folder with files with the names as "example_YY_MM_DD-HH.zip" and I have 3 backups per day. I need this: 1) For backups older than 1 week I need only one per day (at midnight '00' at HH) ...
2
votes
1answer
76 views

A command for KDE short date format

By the command $date the time and date of the system (according to local place) is printed. Is there a command that outputs Kde's short date format in terminal? The date in KDE also depends on ...
0
votes
2answers
55 views

Having problem displaying date?

I want to display following line: Current date is: 2013/12/03 Current time is: 08:50 PM What I have done is: echo "Current date is:" date +%D echo "Current time is:" date +%R ...
1
vote
1answer
94 views

How do I display ISO time system wide?

I'm in United States and am trying out Ubuntu. Very frustrated because all the dates and times are in non-sensical United States format: Date = MM.DD.YY Time = 12 hour format I want ISO ...
2
votes
1answer
1k views

Date and time panel is greyed out, how do I restore it?

Date and time is showing in the login screen (unity-greeter) but not when I login to my session. When I go to date and time settings the panel is all grey : Any idea how to recover from this ?
1
vote
1answer
524 views

Dates set according to location not chosen language

I recently installed Ubuntu 13.10 chose my location as Thailand/Bangkok, keyboard layout and language as South African English. Everything seems to be set up correctly except wherever a date is ...
0
votes
4answers
2k views

Date format in UNIX

How can I show date in YYYY-MM-DDTHH:MM:SS+ZZZZ format in LINUX? I need to write the creation date of a file say file1 in another file say file2 in given format. Help me to achieve this.
12
votes
3answers
57k views

how can I change the date and time on ubuntu 12.04

when I go to change the date and time it doesn't work, and I try to unlock but it just won't unlock, if there is any way to make it work please help. I know it isn't very descriptive but I really ...
0
votes
1answer
203 views

Sorting Pictures by name-column “record date” with nautilus

i use Ubuntu 12.04 LTS a few days now and i like to shot photos :-). So far, i load all my pictures on my ubuntu system (approximatly 15000). But when i want to sort them in their folders by the ...
5
votes
2answers
2k views

Ubuntu keeps resetting time to -3 hours

I have a dual boot system with Win 7 / Ubuntu 13.04. For some reason, Ubuntu resets the system time to -3 hours regardless of timezone settings. I thought that this was UTC problem, but the problem ...
2
votes
1answer
340 views

How to maintain a file's 'last modified' date ?

I'm copying files and folders over from one filesystem to another (both are ext3) via cp in the terminal. The 'date modified' on all of the files are being changed to the current time although I am ...
2
votes
1answer
229 views

Crontab not working with inner unix command

I have following crontab entry which does not work. Please can anybody help? @midnight scp /home/xxx/file.txt xxx@yyy:~/zzz/file.txt_`date +"%m-%d-%y"` This command works very well when run from ...
3
votes
2answers
413 views

How do I add missing cities for the other locations on the time & date clock?

I want to add 'Amsterdam' and 'San Francisco' to my "Time in other locations" setting on the clock, but those cities seem to be missing. What is wrong? How do I add them? I'm using Ubuntu 12.04 LTS. ...