Sha256: ec83748aa9bbb39f4f608f6fff219eb77775840d70c5359242d959627fa2de6d

Contents?: true

Size: 233 Bytes

Versions: 4

Compression:

Stored size: 233 Bytes

Contents

/* 
 mysqlcompat-1.0b3
 public domain
 modified
 UNIX_TIMESTAMP(date)
*/

CREATE OR REPLACE FUNCTION unix_timestamp(timestamp without time zone)
RETURNS bigint AS $$
  SELECT EXTRACT(EPOCH FROM $1)::bigint
$$ VOLATILE LANGUAGE SQL;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ultrasphinx-1.6.7 lib/ultrasphinx/postgresql/unix_timestamp.sql
ultrasphinx-1.7 lib/ultrasphinx/postgresql/unix_timestamp.sql
ultrasphinx-1.8 lib/ultrasphinx/postgresql/unix_timestamp.sql
ultrasphinx-1.9 lib/ultrasphinx/postgresql/unix_timestamp.sql