• src/sbbs3/atcodes.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Thursday, December 19, 2024 18:15:35
    https://gitlab.synchro.net/main/sbbs/-/commit/9f2c2e51eb313313b43e01b4
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Add @-codes to display dates/times in UTC

    When the system time zone is not UTC, but the sysop wants to display some
    dates and times in UTC, they can now use these @-codes to do that:
    - TIME_UTC
    - DATE_UTC
    - UTC:fmt
    - DATETIME_UTC
    - MSG_DATE_UTC
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Accession@1:103/705 to Rob Swindell on Friday, December 20, 2024 17:23:09
    Hello Rob Swindell (On Windows,

    On Thu, Dec 19 2024 20:15:35 -0600, you wrote ..

    - UTC:fmt

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Regards,
    Nick

    ... He who laughs last, thinks slowest.
    ---
    ï¿­ Synchronet ï¿­ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Accession on Friday, December 20, 2024 16:38:15
    Re: Re: src/sbbs3/atcodes.cpp
    By: Accession to Rob Swindell on Fri Dec 20 2024 05:23 pm

    Hello Rob Swindell (On Windows,

    On Thu, Dec 19 2024 20:15:35 -0600, you wrote ..

    - UTC:fmt

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Kind of. You can't have spaces in @-codes, so you'd need to use \x20 in place of space. And you'd need a terminating (at).

    It's just like the TIME:fmt @-code, but instead of local time, it's UTC. https://wiki.synchro.net/custom:atcodes
    --
    digital man (rob)

    Sling Blade quote #7:
    Karl: I don't reckon the Good Lord would send anybody like you to Hades.
    Norco, CA WX: 66.6øF, 43.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Accession@1:103/705 to Digital Man on Friday, December 20, 2024 20:37:40
    Hello Digital,

    On Fri, Dec 20 2024 18:38:15 -0600, you wrote ..

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Kind of. You can't have spaces in @-codes, so you'd need to use \x20
    in place of space. And you'd need a terminating (at).

    It's just like the TIME:fmt @-code, but instead of local time, it's
    UTC. https://wiki.synchro.net/custom:atcodes

    Thanks for the explanation!

    All relevant information is indeed on the wiki (thanks for that, too!), but your explanation here made it far easier for me to find it all on the wiki and put it together (I had to scroll from the top to the bottom to find all the pieces you mentioned in this message).

    Regards,
    Nick

    ... He who laughs last, thinks slowest.
    ---
    ï¿­ Synchronet ï¿­ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)