Re: Interesting date



Allodoxaphobia wrote:
On Mon, 05 Feb 2007 11:09:58 GMT, Gunnar G wrote:
Now this is just a guess, but if 'june' comes from an array starting with
zero, so that 0=january, then 4=may and 5=june, it propably should start
from 1=january and in that case 5 would actually be may... If that doesn't
help, see the whole output of getdate with print_r() and post the result
here.

How can any one start counting from something else than zero in computer
applications?

Standards are GREAT. And, you have so many to chose from!

Thanks! I'm so very, very stupid.

I don't think so. As someone who has worked his way through *A LOT* of programming languages since 1966, "Counting from 0/1" is just _one_ of the 'standards' I never take for granted. (And, I _still_ screw up....)

Jonesy

I seem to remember that back in the C64 days you could actually tell the script (program) to start at 0 or 1 if you wanted. I can't remember what that command was though...

Norm
.



Relevant Pages

  • Re: *nix advice for assignment
    ... > verify the commands I have written below. ... How can you tell if a command successfully completed? ... but quits when a zero is found. ... An 'if' construct may be part of the shell script you are requested ...
    (comp.unix.shell)
  • Re: I cant connect to ftp server with ftp.exe
    ... zero bytes. ... It includes a 'passive' command that ftp.exe does not. ... in the script or not and see if either works. ... Bottom line is ftps, is supposed to be identical to ftp. ...
    (microsoft.public.windowsxp.general)
  • *nix advice for assignment
    ... I am taking a *nix class and trying to write my own script ... verify the commands I have written below. ... Write a shell script that takes in any number of command line ... Q2.sh should echo out each command line argument, and quits when a zero ...
    (comp.unix.shell)
  • Re: G91 G28 Z0
    ... G28, Fanuc's zero return command, tends to be one of the more misunderstood ... G28 is a two-step command. ... Here's what can happen in absolute mode. ...
    (alt.machines.cnc)
  • Re: AIX 5.3 disaster recovery fro AIX newbie
    ... >are you in the server in maint mode? ... I know just because I cannot get in and examined the script it ran. ... one of the scripts smoked /etc/passwd file, to zero. ... If you are not the intended recipient ...
    (AIX-L)