aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/bigdate/tzcasts.sql
blob: 8a5516b43567fe8fb7de60cbf83102ecca458986 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
select 
    cast(TzDate32("1900-01-01,Europe/Moscow") as String),
    cast("1900-01-01,Europe/Moscow" as TzDate32),
    cast(TzDatetime64("1900-01-01T01:02:03,Europe/Moscow") as String),
    cast("1900-01-01T01:02:03,Europe/Moscow" as TzDatetime64),
    cast(TzTimestamp64("1900-01-01T01:02:03.456789,Europe/Moscow") as String),
    cast("1900-01-01T01:02:03.456789,Europe/Moscow" as TzTimestamp64),
    
    AddTimezone(Date32("1900-01-01"),"Europe/Moscow"),
    AddTimezone(Datetime64("1900-01-01T01:02:03Z"),"Europe/Moscow"),
    AddTimezone(Timestamp64("1900-01-01T01:02:03.456789Z"),"Europe/Moscow"),
    
    cast(RemoveTimezone(TzDate32("1900-01-02,Europe/Moscow")) as String),
    cast(RemoveTimezone(TzDatetime64("1900-01-01T03:32:20,Europe/Moscow")) as String),
    cast(RemoveTimezone(TzTimestamp64("1900-01-01T03:32:20.456789,Europe/Moscow")) as String);