In one of my RSS feeds in Yahoo! Pipes, I'm formatting dates using the Date Formatter module and using the format %K so they are pubDate-compliant. In Pipe Output, my four dates appears as follows: Wed, 25 Jul 2012 03:30:00 +0000, Mon, 16 Jul 2012 06:30:00 +0000, Wed, 11 Jul 2012 07:00:00 +0000, and Wed, 27 Jun 2012 13:00:00 +0000.
However, in the RSS feed output, none of these dates appear. Are they formatted incorrectly? Why does Yahoo! Pipes not output these dates?
Okay, so I now realize that I need to output dates to y:published rather than pubDate. This doesn't seem to be widely documented. Even Googling y:published doesn't return many results.
Here are the more detailed steps:
You have an easy-to-read date such as 8 Jan 2013 in its own field, such as pubDate (name doesn't matter; it's just used in Step 2).
Connect your feed to a Loop module. Inside that module, put the Date Builder module, and specify the field where the date is found (such as pubDate).
Still in the Loop module, select "assign results to" and enter item.y:published.
That should output the date in the RSS output in the pubDate field, and it should therefore be readable in any RSS reader.
Related
I'm a bit rubbish on Google Sheets formulas... would anyone be so kind to tell me how to achieve this ?
I'd like to have a cell that returns the last Friday's date on Sat to Wed, and instead the current date for Thursdays and Fridays.
Is it possible ?
e.g. this coming days:
Sat to Wed returns Friday 12th of March
Thu 18th returns Thu 18th
Fri 19th return Fri 19th
... and so on.
Thanks!
There are many ways to accomplish this, but try this:
=IF((WEEKDAY(TODAY())=5)+(WEEKDAY(TODAY())=6),TODAY(),TODAY()-VLOOKUP(WEEKDAY(TODAY()),{7,1; 1,2; 2,3; 3,4; 4,5},2,FALSE))
This formula is based on the us default numbers for weekdays, where Sunday = 1. If this formula produces unexpected results, your locale may be one where Monday = 1. In this case, you'll need to adjust as follows:
=IF((WEEKDAY(TODAY())=4)+(WEEKDAY(TODAY())=5),TODAY(),TODAY()-VLOOKUP(WEEKDAY(TODAY()),{6,1; 7,2; 1,3; 2,4; 3,5},2,FALSE))
Other things to keep in mind:
The + in (WEEKDAY(TODAY())=5)+(WEEKDAY(TODAY())=6) means OR (where * would mean AND).
The VLOOKUP is looking up the weekday of TODAY() within a simple virtual array, which is formed between the curly brackets and which instructs how many days to subtract from TODAY() given the current weekday in order to arrive at the previous Friday.
I noticed on a lot (all?) of Facebook's CSS and JS assets have a last-modified response header of Mon, 01 Jan 2001 08:00:00 GMT.
What value would they be getting out of these all using the same last-modified date? Is it to help with their caching strategy?Maybe obscuring actual date changes for some sort of security benefit? If it's either of these (or something else), how does it provide value?
I really have a basic understanding of the world time zone clock. I looked at this site (http://www.pobox.com/helpspot/index.php?pg=kb.page&id=256) and this helps explain how to adjust the time according to its GMT offset on the date in email headers. But I just want clarification since I can't find it anywhere else.
Say you have information like this:
Thu, 27 Dec 2001 07:02:12 -0800 (PST)
Is it possible for a GMT value to be a value not divisible by 100 in email headers? In other words, is it possible for it to show (the 42 was arbitrary chosen):
Thu, 27 Dec 2001 07:02:12 -0842 (PST)
For those of you curious in what I'm doing, I'm trying to write a method that standardizes the time and date according to the time zone listed in email headers. You could argue that many programming languages support an automatic date and time conversion but I want to also know.
Thanks.
It is indeed possible. Currently, there are offsets that contain 30 and 45 in the last two digit positions. The Marquesas Islands is offset by -0930, and Nepal by +0545.
I have created a bar graph that provides analysis by week (Monday - Sunday). I need to format the X-axis to display Monday, Tuesday, Wednesday, etc. I have attempted to change the "x-tick-format" within the charts properties but have not found a formula that will give me what I need. Current format is 2013-12-09. I have tried {0, dd} which gives me the day number of week within the month but not the name of the day.
The answer is {0, date, E} which will give you Mon, Tue, Wed, Thu, Fri, Sat, Sun.
I was looking at the response headers for my GMail account and noticed that the date Fri, 01 Jan 1990 00:00:00 GMT shows up as the value for "Expires" over and over again. I suppose this is just an easy constant to make sure the browser understands this is past its freshness date. But is there any significance to that particular date? One might as easily have used the same date in 2000, or 1970, or whatever. It's not quirky enough to be someone's birthday or date of college graduation or anything personal like that. Maybe it's just arbitrary, but I was wondering if someone has a good explanation why that particular date was chosen.
No significance, any date in the past will do the job, someone just picked an arbitrary past date. This is so your browser won't cache the page :)
Your browser understands "this is good until..." oh, I need to fetch it again, every time in this case.