Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: RFC: A Design Proposed for Anonymous Monk (UPDATE NOTICE)

by Tux (Abbot)
on Feb 10, 2011 at 07:46 UTC ( #887353=note: print w/replies, xml ) Need Help??

in reply to Re: RFC: A Design Proposed for Anonymous Monk (UPDATE NOTICE)
in thread RFC: A Design Proposed for Anonymous Monk (logged out view)

Could you please use an ISO date notation? 2/9/11 can be anything (11 Sep 2002?)

2011-02-09 is much less error prone.

Enjoy, Have FUN! H.Merijn who really hates the US date notation
  • Comment on Re^2: RFC: A Design Proposed for Anonymous Monk (UPDATE NOTICE)

Replies are listed 'Best First'.
Re^3: RFC: A Design Proposed for Anonymous Monk (UPDATE NOTICE)
by Anonymous Monk on Feb 10, 2011 at 12:58 UTC

    "Could you please use an ISO date notation?"

    Isn't this something you could have easily said in a private message to the OP? This is a thread asking for comments on a graphic design.

      Yes I could have, and I also thought about it for a short moment, but then I thought that designing an API (the graphical front end) is somthing that will be used world-wide, and doesn't see any geographical bounds, and thus it would not do any harm in noting that not all readers live in the US of A.

      IMHO it is something to keep in mind when your target ausience is global, not national.

      I also think that `national' choices have a great deal of impact in how GUI's or other front-ends are generated/designed. Here the style/format of a date is just very small. How about an antry form with address data? In the US a "state" is a required field, whereas in most European countries people curse at having to enter a state that doesn't exist. Some countries have the number of the address in front of the street name where others have it at the end. Both will find "the other way" very very illogical. GUI's and front-ends that require user feedback, and PerlMonks is probably one of those, should very much have that in mind. A perfect GUI will never cause an end-user to curse. I'm afraid the perfect GUI does not exist.

      Enjoy, Have FUN! H.Merijn

        All your clever arguments not withstanding, it's entirely OT for the thread.

Re^3: RFC: A Design Proposed for Anonymous Monk (UPDATE NOTICE)
by Anonymous Monk on Feb 10, 2011 at 09:24 UTC
    $ date "+%Y-%m-%dT%H:%M:%S%z" 2011-02-10T01:13:07-0800 $ date --iso-8601 2011-02-10 $ perl -MTime::Piece -le"print Time::Piece->localtime->strftime(q!%Y-% +m-%dT%H:%M:%S%z!);" 2011-02-10T01:13:41PST
    #!/usr/bin/perl -- use strict; use warnings; use DateTime; print DateTime->now->strftime(q!%F %T%z!), "\n"; print DateTime->now( qw! time_zone America/Los_Angeles ! )->strftime(q +!%F %T%z!), "\n"; print DateTime->now( qw! time_zone Asia/Taipei ! )->strftime(q!%F %T%z +!), "\n"; __END__ 2011-02-10 09:25:08+0000 2011-02-10 01:25:08-0800 2011-02-10 17:25:08+0800

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887353]
[Corion]: But if you are parsing CSV, again, let me point to Text::CSV_XS, which you should use instead
[hippo]: +1 for Text::CSV_XS
[ovedpo15]: Im not allowed to use additional modules, so I can't use it. looking for a simple regex to do this task though..
[Corion]: Ah, so this is homework? Then most likely, you should review your course material closer. It would greatly surprise me if the course material wouldn't mention the topics that will be used in the homework...
[Corion]: I already showed you the simple regex to match the last part of a string without a comma in it
[Tux]: Corion++ hippo++
[ovedpo15]: it isn't homework. its a module I use at work. The process to add additional module isn't worth it. p.s never heard a university course which teach perl
[marto]: there are many, to this day.
[ovedpo15]: @Corion Yes I use the regex you showed me. its very good regex. although now i need to know that substring unit that comma
marto mad corrections to one around 18 months ago

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-05-27 10:41 GMT
Find Nodes?
    Voting Booth?