Sha256: 20e61423f19640c305ceea0160563a05f4e59eaf8cd8de47fa958fa3aa26252f

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pager-ultrasphinx-1.0.20080510 lib/ultrasphinx/postgresql/unix_timestamp.sql
pager-ultrasphinx-1.0.20080514 lib/ultrasphinx/postgresql/unix_timestamp.sql
ultrasphinx-1.11 lib/ultrasphinx/postgresql/unix_timestamp.sql