Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: PHP  |  size: 0.35 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.    $auctions = new Model_Auction(NULL, NULL, NULL, 'user');
  2.                 $auctions = $auctions->select(
  3.                                      '*',
  4.                                      array( DB::expr("(date_part('epoch'::text, auctions.date_updated))::bigint"), 'date_updated_unix' )
  5.                             )
  6.                             ->find_all();