1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

4UTILS

Discussion in 'Plugins' started by Kachupp, Jun 22, 2010.

  1. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    Tue 22 Jun 2010 10:50p
    c:\>:Note time
    Tue 22 Jun 2010 10:50p
    c:\>plugin
    4UTILS: @ASCIIHEX @AVG @CLOCK @DEQUOTE @DTMARK @DU
    @EMPTY @EXECW @FACT
    @FILEREADX @FILEWRITEX @FMTBYTE @FREGEX @GEV @GV
    @HEXTOIP @IPTOHEX @ISLEAP
    @MRAND @MRANDSEED @NEWEST @OLDEST @PARSEF
    @PARSEW @PP @SET @SHPATH
    @SREPEAT @STIRLING @SUM @TR @UCODEHEX
    @UNIXTIME @XREPLACE CDH CDO
    CLOCK CRUNCH DEC DIRSORT EVAL
    FCONVERT GREPP GSET INC
    NOTAGS PACE SETERR TYPEX UHELP
    UNSETEX UNTYPEX _AGENOW _D8
    _INKEY _N _PRIORITY _T6 _T9
    _UNIXTIME _UTC

    Tue 22 Jun 2010 10:50p
    c:\>echo %_utc
    22/06/2010 10:50:56 a.m.

    Tue 22 Jun 2010 10:50p
    c:\>: a.m ?
    Tue 22 Jun 2010 10:51p
    c:\>ver

    4NT 8.02.106 Windows XP [Version 5.1.2600]
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Tue, 22 Jun 2010 07:10:48 -0400, Kachupp <> wrote:

    |c:\>: a.m ?

    It's coming from:

    GetTimeFormat(LOCALE_USER_DEFAULT, LOCALE_USE_CP_ACP, ...
    --
    - Vince
     
  3. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    In my original post prompt is as follows " prompt $D $M $_$P$g " which
    provides the following

    Wed 23 Jun 2010 10:46a
    C:\>echo %_utc
    22/06/2010 10:46:58 p.m

    Wed 23 Jun 2010 10:46a
    C:\>

    The data returned by it is 24HRS old
    How do i fix it
     
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Tue, 22 Jun 2010 18:58:24 -0400, Kachupp <> wrote:

    |In my original post prompt is as follows " prompt $D $M $_$P$g " which
    |provides the following
    |
    |Wed 23 Jun 2010 10:46a
    |C:\>echo %_utc
    |22/06/2010 10:46:58 p.m
    |
    |Wed 23 Jun 2010 10:46a
    |C:\>
    |
    |The data returned by it is 24HRS old
    |How do i fix it

    I your earlier post there was no such problem. Here's a quote from your earlier
    post:

    Code:
    Tue 22 Jun 2010 10:50p
    c:\>echo %_utc
    22/06/2010 10:50:56 a.m.
    
    Tue 22 Jun 2010 10:50p
    .

    And PROMPT's $M gives the **local** time, while _UTC gived UTC time. So I
    presume you are near Grenwich, UK in which case I don't understand how "Wed 23
    Jun 2010 10:46a" can be correct. All _UTC does is get the system time (which is
    UTC) and prints it. Does anyone have a clue what Kachupp is asking and what's
    going on?
    --
    - Vince
     
  5. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    On my system, %_UTC returns the same data as %_UTCDATETIME (though in a different format.)
     
  6. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Tue, 22 Jun 2010 19:54:10 -0400, Charles Dye <> wrote:

    |On my system, %_UTC returns the same data as %_UTCDATETIME (though in a different format.)

    That's what it's supposed to do.
    --
    - Vince
     
  7. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    I'm in New Zealand no where near the UK.
    The problem in the original post was that _utc displayed "a.m" .... My
    prompt display shows "p"

    from original post
    Tue 22 Jun 2010 10:50p
    c:\>echo %_utc
    22/06/2010 10:50:56 a.m.

    a.m ^

    Previous Post
    Wed 23 Jun 2010 10:46a
    C:\>echo %_utc
    22/06/2010 10:46:58 p.m

    p.m ^

    Current Post
    Wed 23 Jun 2010 12:04p
    C:\>echo %_utc
    23/06/2010 12:04:05 a.m.

    Just turned Mid-day but _utc is saying Morning

    24 hrs out
     
  8. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Tue, 22 Jun 2010 20:29:06 -0400, Kachupp <> wrote:

    |I'm in New Zealand no where near the UK.
    |The problem in the original post was that _utc displayed "a.m" .... My
    |prompt display shows "p"

    Earlier you said:

    Wed 23 Jun 2010 10:46a
    C:\>echo %_utc
    22/06/2010 10:46:58 p.m

    It looks correct to me. New Zealand is 12 hours ahead of UTC. When it's 10:46
    AM Wednesday for you, UTC is 10:46 PM Tuesday.
    --
    - Vince
     
  9. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    What does ECHO %_TZO report?
     
  10. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    My point exactly.
     
  11. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    12 hrs -720
     
  12. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,190
    Likes Received:
    11
    There is a 12 hour difference being displayed - not 24. Isn't there a +12
    time difference between NZ and GMT?
    It sure seems like it's working to me.

    -Scott

    Kachupp <> wrote on 06/22/2010 08:29:06 PM:


    So I

     

Share This Page