General :: Why 12/01/1965 Is An Invalid Date
Sep 12, 2010
why 12/01/1965 is an invalid date ? It is a bug on date ?
Code:
miguel@quadbit:~$ date -d "12/01/1964"
Ter Dez 1 00:00:00 BRT 1964
miguel@quadbit:~$ date -d "12/01/1965"
date: invalid date `12/01/1965'
[Code].....
View 1 Replies
ADVERTISEMENT
Mar 12, 2010
I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
View 5 Replies
View Related
Sep 20, 2010
I installed Debian 5.03 Lenny successfully on my machine. I got this error during boot: ACPI : invalid PBLK length [5]. After that the Operating System boots properly and starts normally. What does this error statement mean? Is it safe to work with this installation despite this error?
View 1 Replies
View Related
Feb 28, 2011
I try to setup a HPC cluster with CentOS 5.5. But now there is no Internet connection available in the room where the hardware is located so I set up ntpd server using synchronization with local clock (maybe I do something wrong). Here is my ntp.conf file on a master node (the master node has IP 10.0.1.1, a file server has IP 10.0.1.2 and compute nodes are 10.0.1.3..10.0.1.11, comments are omitted):
Code:
restrict 127.0.0.1
restrict -6 ::1
restrict 10.0.1.1 mask 255.255.255.255 notrust
restrict 10.0.1.0 mask 255.255.255.0 nomodify notrap
code....
Any time I try to install software building it from source when I run make I get a waring "Clock skew detected. Your build may be incomplete". Some software build successfully and run normally after install but some build tasks are failed for example when I try to build RPM's via 'make rpms' for BLCR I get an error message about invalid date in changelog. But the system date seems to be right. I suppose I have invalid settings of NTP.
View 5 Replies
View Related
Feb 10, 2011
Trying simply to insert into table. Have succeeded in doing this but now want to correct user use of invalid characters. If I'm understanding correctly, Real-escape-string seems to correct these, so I've been trying to figure out how to use it. A short, test code version gives me a syntax error at INSERT VALUES, which--because it still has the single quotes in the text--tells me the real-escape-string didn't work. The code below gives me a parseing error with invalid $END at </body>.
Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' VALUES (UTC_TIMESTAMP,'What's happen' bra?')' at line 1 Parse error: syntax error, unexpected $end in /home/powere15/public_html/DB/exercises_insert_record.php on line 94
<html><head><title>Exercise Catalog Insert Record</title></head>
<body>
<?
/* Change db and connect values if using online */
[Code]....
View 2 Replies
View Related
Apr 22, 2010
Anyone have a ksh solution to convert julian date to gregorian date?
View 6 Replies
View Related
Sep 22, 2010
I'm looking for a method for modifying some jpg photo files last modification date with the corresponding timestamp creation date of each file.The reason is that shotwell import pictures in folders according to last modification date which is stupid on my opinion.
View 2 Replies
View Related
Aug 1, 2011
As a photographer I'm constantly taking photos and storing them in folders. Now occasionally I'm using two cameras (either for different settings or an assistant is also taking photos) which means that for one event I can have differently named images.Both cameras have the same time set (which always helps in Windows) but in Ubuntu when trying to sort my folder by date taken I can't.The options I'm given are to sort them: Manually, by Name, by Size, by Type, by Modification date and by Emblem.Now none of those are helpful to me once I've done a few edits to the images.So please if anyone knows, how do you organise a folder with images taken on different cameras by Date Taken rather than Date Edited?
View 3 Replies
View Related
Oct 29, 2010
i have a line in a script that puts some text into a fileecho "Couldn't find this at this time" >>/var/cccamlog/cccam.checkthis work ok but i would like to have the time printed auto co what do i have to do to the line to do it?"Couldn't find this at this time 10-10-2010 08:05pm
View 10 Replies
View Related
Jan 24, 2011
I just switched from a basic digital camera to a more advanced one that stores both Jpeg and Raw (.Nef - it's a Nikon) files for me.When importing files in Digikam, I rename the files so that they start with Date and Time. Example: 20110121-223748.JPG for a photo taken on Jan 21st 2011 at 22:37:48.I was a bit surprised when importing both the JPEG and the Raw version of the same photo, that the filename is different by a few seconds (no constant offset, sometimes they are the same):
20110121-223748.JPG
20110121-223750.NEF
I did some "research" by looking at the exif data of both files (using "exiftool 20110121-223748.JPG" from the command line). Here is what I got back
(amongst other data):20110121-223748.JPG
File Modification Date/Time : 2011:01:21 22:37:48+01:00
Modify Date : 2011:01:21 22:37:48
Date/Time Original : 2011:01:21 22:37:48
[code]....
So it seems that Digikam is using the "File Modification Date/Time" (different in the Jpeg's and Raw's of my camera) rather than the "Create Date" (the same for both Jpeg and Raw). (The few seconds difference in "File Modification Date/Time" between the two versions of the same photo is probably due to the time that my camera needs to write away the data on the SD memory card. I guess.) Is there a way to have Digikam use the Create Date? (Or the Date/Time Original?)
PS: I'm on Ubuntu 10.04LTS, using DigiKam 1.2.0
View 1 Replies
View Related
Jun 15, 2010
How to use the date command to display, for example, 10-Mar-2010 01:01:53? What's the format string?
View 2 Replies
View Related
Jun 19, 2011
Somehow during a recent ubuntu install I managed to set my clock to Indian Standard Time instead of Greenwich Mean Time. Now I'm having problems acessing some websites and I think it's because the certificates appear to be off date.
View 2 Replies
View Related
Apr 11, 2011
I'm trying to put the date in the name of my file but cant seem to get it I just end up with the word date in the file instead of the date. my script looks like this.
#!/bin/bash
x="/var/log/system/"
y=date
z=${y:11:8}
top > $x$y.txt
View 3 Replies
View Related
Nov 29, 2009
I have SLES 11 and activated the daily updates.
But i don't know if the system :dowloads the updates
if the downloaded updates are immidiately installed
some updates need to reboot the system. does it automatically reboot or
does he(the system) inform me ? (where ?)
View 2 Replies
View Related
Dec 11, 2010
calculating days' distance?
for instance,
Code:
( 2010-9-16 ) minus (2010-9-1) = 16 days
I have read the date manual
View 4 Replies
View Related
May 25, 2010
How do I make a directory with the date in this format:
YYYYMM
201005
View 2 Replies
View Related
Jul 12, 2010
I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.
Just to give an example:
stat foo.jpg |grep Modify gives me
Modify: 2010-07-12 06:28:56.890625000 -0400
Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command
View 4 Replies
View Related
Apr 30, 2011
How to change Linux web server date through SSH?
View 3 Replies
View Related
Jun 26, 2011
Why is the output of the following commands different?
root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#
And can I change the current time on Linux?
View 4 Replies
View Related
Mar 17, 2010
I am using Red hat Linux operating system.I want change the date exactly 5 years ago to current date with out providing month, date and time. I want only the year should be 5 years ago .please help in this regard . example . If current date is this = Wed mar 18 22:59:23 IST 2010. past date shuld be like this= Sat Mar 18 22:59:23 IST 2005
View 6 Replies
View Related
Nov 5, 2009
I had a program run riot and it has created hundreds of spurious files in one directory. Fortunately they are all dated 4th November so are easily identified. What bash command can I use from the console to delete them all?
View 2 Replies
View Related
Oct 4, 2010
rpm -qa --last lists all rpm with date and time. But I want to sort the list by date, with earlier rpm displayed first. So it needs pipe, rpm -qa --last |
View 2 Replies
View Related
Oct 22, 2010
How would i find the installation date of my OS.
View 5 Replies
View Related
Jan 11, 2010
Xandros isn't keeping its repostorie Apps. updated. I tried Ubuntu 9.04 and it was good with only a minor change, (wireless was slow). Got a workround from Ubuntu forum. Login as root I was able to fix it, I updated to Ubuntu 10. Wireless was slow again. I tried logging on as root. Ubuntu 10. has lockout root and sudo won't let me add (iwconfig wlan rate 54M) to a boot up program to fix it. I went back to 9.04 now it wouldn't let me sign in as root. I next tried Debian Lenny. The screen res. was 1600 x 900? And for Dabian Lenny the screen res. is set automatically and can't be set manually, so I could not finish the install. So I'm back to Xandros 4.1 needing help to keep it up to date.
View 2 Replies
View Related
Jan 24, 2010
is there a more up to date version of ktorrent available and is so where can I find it.
View 1 Replies
View Related
Oct 23, 2010
how and where to find the linux installation date in machine, is there are any logs,file, date time stamp.
let us say centos 5.x or 4.x fedora if talk about
View 5 Replies
View Related
May 10, 2011
I am facing a problem in finding out the maximum value of a field using awk .. The field is of date format i.e. (MM/DD/YYYY) ..
The contents of the file is :
2/2/2011 XYZ
2/2/2011 XYZ1
2/3/2011 ABC
2/4/2011 ABC
[Code]....
I need to find the maximum of the first column i.e. my output should be 2/12/2011 ..
I was using the below awk script : awk 'n < $0 {n=$0} {print n}{print $0}' <source_file having the above data>
But the output I am getting is 2/9/2011 instead of 2/12/2011 ...
what could be reason for this output and how can I get my desired result ..?
View 3 Replies
View Related
Feb 27, 2010
i want to know the next release date of ubuntu
View 3 Replies
View Related
Mar 3, 2011
I am running Suse 11.1 and for several weeks now have been getting no system updates, security or otherwise. I am, however, getting a message suggesting that the relevant repositories are out of date. Do I need to upgrade to a new version?
View 1 Replies
View Related
Mar 10, 2011
I want to try Linux on a 5yr old desktop, What is the best and up to date Linux to install.CPU-AMD Sempron(tn)3000+,CPU Speed-2000MHz/333MHz, Ram 1.5G
View 8 Replies
View Related