Skip to content

Instantly share code, notes, and snippets.

@slaskis
Forked from anonymous/gist:58717
Created February 5, 2009 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaskis/58719 to your computer and use it in GitHub Desktop.
Save slaskis/58719 to your computer and use it in GitHub Desktop.
// Get the selected date and apply the current local time
var currentTime : Date = day.date;
var now : Date = new Date();
currentTime.setHours( now.hours, now.minutes , now.seconds );
var yesterday : Date = new Date( currentTime.time );
yesterday.date -= 1;
query += " published_after:\"" + df.format( DateUtil.toPST( yesterday ) ) + " 16:00\"";
query += " published_before:\"" + df.format( DateUtil.toPST( currentTime ) ) + " 15:59\"";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment