RSS question regarding <pubDate>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedShoe
    赤い靴 call me 202-456-1111
    • Feb 2001
    • 14831

    #1

    RSS question regarding <pubDate>

    I'm not sure I'm understanding the <pubDate> tags in RSS. Is there an actual code that you insert between the tags to get the date? Do you just leave it blank and the date is inserted there when the document is published?

    Is it like in javascript where you create a code like <? print date("F d, Y H:i:s", time())?> and then it posts the time when the doc is published?

    Kinda confused. Does anyone know?

    Thanks.

    SPECIALTY COSTUMES • PROPS • FX
    Superheroes • Monsters • Robots
    PM for details


    For any manufacturing needs. Adult or otherwise.

    aka BonsHigh on Insta
    Bonsai weed plants


  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    You could do that, almost just like that in PHP, yes.

    The <pubDate> element defines the last publication date for the content in the RSS feed.


    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="2.0">

    <channel>
    <title>W3Schools Home Page</title>
    <link>http://www.w3schools.com</link>
    <description>Free web building tutorials</description>
    <pubDate>Thu, 27 Apr 2006</pubDate>
    <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3schools.com/rss</link>
    <description>New RSS tutorial on W3Schools</description>
    </item>
    </channel>

    </rss>
    Since I regen my shit on the fly, I always use the local time for a LastBuild.
    Last edited by GrouchyAdmin; 09-25-2006, 10:42 PM.

    Comment

    • Jace
      FBOP Class Of 2013
      • Jan 2004
      • 35562

      #3
      not sure if this helps or not, but here ya go

      pubDate The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).

      Comment

      • smashface
        Confirmed User
        • Sep 2002
        • 991

        #4
        Are you trying to create software that will write an RSS feed or just manually creating an RSS feed? You can manually edit this date or have your feed creation software add it.

        I think that feed readers use it to download new content and or updated items.

        Comment

        • RedShoe
          赤い靴 call me 202-456-1111
          • Feb 2001
          • 14831

          #5
          What I'm looking for is the actual code that gets inserted between the pubdate tags that will generate an actual date upon publication.

          What I have is an evem more powerful templating system (one that is far too complicated for to get into here) It's taken me years to master and I want to be able to use this system to build RSS feeds. Which it can do, but I don't think it can insert a date, so I'll need to actually build the a timestamp code to go on the template so that every time it runs, the new content will get added into it and a date will get stamped into the proper area.

          SPECIALTY COSTUMES • PROPS • FX
          Superheroes • Monsters • Robots
          PM for details


          For any manufacturing needs. Adult or otherwise.

          aka BonsHigh on Insta
          Bonsai weed plants


          Comment

          • Solid Bob
            Confirmed User
            • Apr 2006
            • 1213

            #6
            Originally posted by RedShoe
            What I'm looking for is the actual code that gets inserted between the pubdate tags that will generate an actual date upon publication.

            What I have is an evem more powerful templating system (one that is far too complicated for to get into here) It's taken me years to master and I want to be able to use this system to build RSS feeds. Which it can do, but I don't think it can insert a date, so I'll need to actually build the a timestamp code to go on the template so that every time it runs, the new content will get added into it and a date will get stamped into the proper area.
            It's something simple, I'm sure someone will post it exactly in a few. I don't have it in front of me or I'd tell you.

            Oh, and shhhhhhhhhhhhhhhhh.
            [email protected]

            Comment

            • RedShoe
              赤い靴 call me 202-456-1111
              • Feb 2001
              • 14831

              #7
              Originally posted by Solid Bob
              It's something simple, I'm sure someone will post it exactly in a few. I don't have it in front of me or I'd tell you.

              Oh, and shhhhhhhhhhhhhhhhh.
              It's been an hour and fifteen since you said someone would post it in a few. Either their post got deleted, or they never posted it.

              SPECIALTY COSTUMES • PROPS • FX
              Superheroes • Monsters • Robots
              PM for details


              For any manufacturing needs. Adult or otherwise.

              aka BonsHigh on Insta
              Bonsai weed plants


              Comment

              • RedShoe
                赤い靴 call me 202-456-1111
                • Feb 2001
                • 14831

                #8
                let timestamp_regexp = '\v\C%(<Last %([cC]hanged?|[Mm]odified):\s+)@<=.*$'

                <variable name="aVariable3" expr=":timestamp.hour"/>

                xjvf timestamp.tbz2


                Am I close?

                SPECIALTY COSTUMES • PROPS • FX
                Superheroes • Monsters • Robots
                PM for details


                For any manufacturing needs. Adult or otherwise.

                aka BonsHigh on Insta
                Bonsai weed plants


                Comment

                Working...