datetime.datime.now()
datetime.datetime(2016, 6, 20, 15, 38, 16, 510234)
datetime.datetime(2016, 6, 20, 15, 38, 16, 510234)
'2016-6-20 17:38:16+0200'
I
did a experience: i create a table test and do personnaly an insert
values with dateof(now) that show me the good timestamp on cassandra so i
don't understand :o even if that work to my project.
Could you explain me ? pliz
Thank you in advance, and also sorry for my poor english.
--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.
CREATE TABLE unite (
unite int,
date timestamp,
humidite float,
lumiere float,
temperature float,
PRIMARY KEY ((unite), date)
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.100000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair_chance=0.000000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
default_time_to_live=0 AND
speculative_retry='99.0PERCENTILE' AND
memtable_flush_period_in_ms=0 AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'LZ4Compressor'};
CREATE TABLE gaiadata (
unite int,
date timestamp,
humidite float,
lumiere float,
temperature float,
PRIMARY KEY ((unite), date)
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.100000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair_chance=0.000000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
default_time_to_live=0 AND
speculative_retry='99.0PERCENTILE' AND
memtable_flush_period_in_ms=0 AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'LZ4Compressor'};
CREATE TABLE test (
id text,
date timestamp,
PRIMARY KEY ((id))
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.100000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair_chance=0.000000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
default_time_to_live=0 AND
speculative_retry='99.0PERCENTILE' AND
memtable_flush_period_in_ms=0 AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'LZ4Compressor'};
select * from X;
id | date
-----------+--------------------------
ok | 2016-06-20 15:43:32+0200
testTemps | 2016-06-20 14:57:25+0200
unite | date | humidite | lumiere | temperature
-------+--------------------------+----------+---------+-------------
1 | 2016-06-20 15:53:49+0200 | 35 | 1023 | 26
1 | 2016-06-20 15:54:09+0200 | 36 | 1023 | 26
1 | 2016-06-20 15:54:29+0200 | 36 | 1023 | 26
1 | 2016-06-20 15:57:13+0200 | 36 | 1023 | 26
1 | 2016-06-20 15:57:33+0200 | 35 | 1023 | 26
1 | 2016-06-20 15:57:53+0200 | 35 | 1007 | 26
1 | 2016-06-20 15:59:38+0200 | 36 | 1023 | 26
1 | 2016-06-20 15:59:58+0200 | 35 | 1023 | 26
1 | 2016-06-20 16:00:18+0200 | 35 | 1023 | 26
1 | 2016-06-20 16:00:38+0200 | 35 | 1023 | 26
1 | 2016-06-20 16:03:28+0200 | 35 | 1022 | 26
1 | 2016-06-20 16:03:48+0200 | 35 | 1023 | 26
unite | date | humidite | lumiere | temperature
-------+--------------------------+----------+---------+-------------
1 | 2016-06-20 16:46:44+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:47:04+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:47:24+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:47:45+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:48:05+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:48:25+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:48:46+0200 | 40 | 1023 | 27
1 | 2016-06-20 16:49:06+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:49:26+0200 | 33 | 1023 | 27
1 | 2016-06-20 16:49:47+0200 | 33 | 988 | 27
1 | 2016-06-20 16:50:07+0200 | 34 | 1023 | 27
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.
--
--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.
--
--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.