Sha256: ca86b353b6d3c25fa8b5202c63bcefe893a4a39a1533fc8fd211b053f6561f73

Contents?: true

Size: 251 Bytes

Versions: 2

Compression:

Stored size: 251 Bytes

Contents

/* Taken from ultrasphinx */

/* 
 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

2 entries across 2 versions & 1 rubygems

Version Path
minisphinx-1.0.1 lib/mysqlcompat/unix_timestamp.sql
minisphinx-1.0.0 lib/mysqlcompat/unix_timestamp.sql