Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: date command< Next Oldest | Next Newest >
whittycat Offline





Group: Members
Posts: 10
Joined: April 2007
Posted: April 10 2007,09:46 QUOTE

I am new to DSL and one of the things I had to do was set the date. I am used to doing this with the command
   date -s "STRING"
and this returned 'invalid format'. DSL uses the alternative form of the command
   date mmddhhmmyyyy
but I was not aware of that until I looked it up. So you are not wrong but it would be better if the error message were to say 'use the format ...'.
Best wishes,
whittycat
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 10 2007,13:08 QUOTE

Individual binary applications are written by various persons or groups outside of the DSL project, and are usually not modified from their original state (unless a change is necessary in order for the program to run in DSL). There are not enough DSL developers to take on the workload needed to maintain changes to outside projects.

Besides, many of the standard tools in DSL are actually Busybox, which is a toolbox of stripped-down versions of common apps. It is not uncommon to see a particular program feature that works in one distro not work in DSL. This was necessary in order to maintain a very small size.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: April 10 2007,14:03 QUOTE

I do provide an easy to use GUI to set the date.
You can find it on the menu or from the DSLpanel, or from the command line as datetool.lua

Many of the command line utilities will accept the --help option to see what options are supported and their required format, e.g.

date --help
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 10 2007,17:55 QUOTE

If you wish to use the gnu date tool, you can load the gnu-utils extension.
Back to top
Profile PM 
whittycat Offline





Group: Members
Posts: 10
Joined: April 2007
Posted: April 11 2007,18:33 QUOTE

Thank you for the explanation. I see that if the date command is provided by busybox there is not much you can do about it. I have, however,  some comments:
1 'date --help' lists the options which include -s STRING but you can't   actually set the date this way; it either has no effect or sets the wrong date. So you are right to say that the format 'date mmddhhmmssyyyy' is the right way to do it.
2 'date --help' says that you get Coordinated Universal Time. I get PDT.
 3 I can't find datetool.lua. 'find' can't find it either.

Well that's enough about date. I'll get on with something useful like Tiny C.

whittycat
Back to top
Profile PM 
6 replies since April 10 2007,09:46 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: date command

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code