Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th October 2008, 09:13 PM
endeavor Offline
Registered User
 
Join Date: Oct 2005
Posts: 6
A bug exists in "date" build-in function?

Hi All,

I tryied the following commands (see below) on several Linux kernels, it looks there are some bugs exist in date build-in function I am not sure about this, can anyone test the command on Fedora, I do not have Fedora available at the moment.
Thanks.


On PC cygwin


hzs@work
$ uname -a
CYGWIN_NT-5.1 work 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

hzs@work
$ date -d "20071101 73 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00

hzs@work
$ date -d "20071101 74 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00

hzs@work
$ date -d "20071101 75 hours" +%Y-%m-%d_%H:00:00
2007-11-04_02:00:00


On CentOS


hzs@work1
$ uname -a
Linux work1 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:14:47 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

hzs@work1
$ date -d "20071101 73 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00

hzs@work1
$ date -d "20071101 74 hours" +%Y-%m-%d_%H:00:00
2007-11-04_02:00:00

hzs@work1
$ date -d "20071101 75 hours" +%Y-%m-%d_%H:00:00
2007-11-04_03:00:00


Another CentOS different kernel

Linux work2 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:49:24 EDT 2008 i686 i686 i386 GNU/Linux

[1244][hzs@work2]$ date -d "20071101 73 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00
[1244][hzs@work2]$ date -d "20071101 74 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00
[1244][hzs@work2$ date -d "20071101 75 hours" +%Y-%m-%d_%H:00:00
2007-11-04_02:00:00
Reply With Quote
  #2  
Old 17th October 2008, 09:19 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Code:
[leigh05@localhost ~]$ uname -a
Linux localhost.leigh123.homelinux.com 2.6.26.6-71.fc9.x86_64 #1 SMP Mon Oct 13 17:38:08 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[leigh05@localhost ~]$ date -d "20071101 73 hours" +%Y-%m-%d_%H:00:00
2007-11-04_01:00:00
[leigh05@localhost ~]$ date -d "20071101 74 hours" +%Y-%m-%d_%H:00:00
2007-11-04_02:00:00
[leigh05@localhost ~]$ date -d "20071101 75 hours" +%Y-%m-%d_%H:00:00
2007-11-04_03:00:00
[leigh05@localhost ~]$
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
Reply

Tags
bug, buildin, date, exists, function

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount fails "reason by server: No such file or directory" , but dir exists! thrombomodulin Servers & Networking 7 26th January 2010 06:33 AM
libdl.so.2: cannot open shared object file " but it exists" m.nassar Using Fedora 0 6th December 2008 03:29 AM
HP NC373F "Multi-function" Gigabit adapter poblano Servers & Networking 0 19th February 2008 01:50 PM
system-config-date SRPM build requires "anaconda" on install? SHtRO Using Fedora 0 1st May 2006 10:16 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM


Current GMT-time: 18:49 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat