中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

做網(wǎng)站公司職務(wù)免費找精準客戶軟件

做網(wǎng)站公司職務(wù),免費找精準客戶軟件,網(wǎng)頁游戲排行2019,智能營銷型網(wǎng)站制作Neo4j系列導(dǎo)航: neo4j及簡單實踐 cypher語法基礎(chǔ) cypher插入語法 cypher插入語法 cypher查詢語法 cypher通用語法 cypher函數(shù)語法 6.時間函數(shù)-即時類型 表示具體的時刻的時間類型函數(shù) 6.1.date函數(shù) 年-月-日時間函數(shù): yyyy-mm-dd 6.1.1.獲取date da…

請?zhí)砑訄D片描述


Neo4j系列導(dǎo)航:
neo4j及簡單實踐
cypher語法基礎(chǔ)
cypher插入語法
cypher插入語法
cypher查詢語法
cypher通用語法
cypher函數(shù)語法


6.時間函數(shù)-即時類型

表示具體的時刻的時間類型函數(shù)

6.1.date函數(shù)

年-月-日時間函數(shù): yyyy-mm-dd

6.1.1.獲取date

  • date(): 獲取當前時間,如果未指定時區(qū)參數(shù),則將使用本地時區(qū) date([{timezone}])

    return date() as currentDate // 返回值2024-04-01
    return date({timezone: 'America/Los Angeles'}) // 返回值2024-04-01

  • date.transaction(): 使用transaction時返回當前date。對于同一事務(wù)中的每次調(diào)用,該值都是相同的 date.transaction([{timezone}])

    return date.transaction() as currentDate // 返回值2024-04-01

  • date.statement(): 使用statement返回當前date值。對于同一語句中的每次調(diào)用,該值都相同。但是,同一事務(wù)中的不同語句可能會產(chǎn)生不同的值 date.statement([{timezone}])

    return date.statement() as currentDate // 返回值2024-04-01

  • date.realtime(): 使用date返回當前值realtime。該值將是系統(tǒng)的實時時鐘。 (系統(tǒng)時間)date.realtime([{timezone}])

    return date.realtime() as currentDate // 返回值2024-04-01

6.1.2.創(chuàng)建date

  • 創(chuàng)建 年-月-日: 返回一個date值,其中包含指定的年、月、日 date({year [, month, day]})

    unwind [date({year: 1984, month: 10, day: 11}),date({year: 1984, month: 10}),date({year: 1984})] as theDate return theDate // 返回值1984-10-11, 1984-10-01, 1984-01-01

  • 創(chuàng)建 年-周-日: date({year [, week, dayOfWeek]})

    unwind [date({year: 1984, week: 10, dayOfWeek: 3}), date({year: 1984, week: 10}),date({year: 1984})] as theDate return theDate // 返回值1984-03-07, 1984-03-05, 1984-01-01

  • 創(chuàng)建 年-季度-日: date({year [, quarter, dayOfQuarter]})

    unwind [date({year: 1984, quarter: 3, dayOfQuarter:45}),date({year: 1984, quarter: 3}),date({year: 1984})] as theDate return theDate // 返回值1984-08-14, 1984-07-01, 1984-01-01

  • 創(chuàng)建 年-日: date({year [, ordinalDay]})

    unwind [date({year: 1984, ordinalDay: 202}),date({year: 1984})] AS theDate return theDate // 返回值1984-07-20, 1984-01-01

  • 創(chuàng)建 根據(jù)時間字符串: date(temporalValue)

    unwind [date('2015-07-21'),date('2015-07'),date('201507'),date('2015-W30-2'),date('2015202'),date('2015')] as theDate return theDate // 返回值2015-07-21, 2015-07-01, 2015-07-01, 2015-07-21, 2015-07-21, 2015-01-01

  • 創(chuàng)建 使用其他時間組件: date({date [, year, month, day, week, dayOfWeek, quarter, dayOfQuarter, ordinalDay]})

    unwind [ date({year: 1984, month: 11, day: 11}), localdatetime({year: 1984, month: 11, day: 11, hour: 12, minute: 31, second: 14}), datetime({year: 1984, month: 11, day: 11, hour: 12, timezone: '+01:00'}) ] as dd return date({date: dd}) as dateOnly, date({date: dd, day: 28}) as dateDay

6.1.3.分割date

返回date通過在指定組件邊界(由作為參數(shù)傳遞給函數(shù)的截斷單元表示)處最近的先前時間點處截斷指定瞬時瞬時值而獲得的值。
date.truncate(unit [, temporalInstantValue [, mapOfComponents ] ])

參數(shù)含義
unit計算結(jié)果為以下string值之一的字符串表達式:'millennium', 'century', 'decade', 'year', 'weekYear', 'quarter', 'month', 'week', 'day'
temporalInstantValue以下類型之一的表達式:ZONED DATETIME, LOCAL DATETIME, DATE
mapOfComponents計算包含小于 的分量的映射的表達式unit

實例:

with datetime({year: 2017, month: 11, day: 11,hour: 12, minute: 31, second: 14, nanosecond: 645876123,timezone: '+01:00'}) as dreturndate.truncate('millennium', d) as truncMillenium,date.truncate('century', d) as truncCentury,date.truncate('decade', d) AS truncDecade,date.truncate('year', d, {day: 5}) AS truncYear,date.truncate('weekYear', d) as truncWeekYear,date.truncate('quarter', d) as truncQuarter,date.truncate('month', d) as truncMonth,date.truncate('week', d, {dayOfWeek: 2}) as truncWeek,date.truncate('day', d) as truncDay

結(jié)果:

千禧年節(jié)截斷世紀截斷十年截斷年份截斷周年截斷季度截斷月份截斷周截斷日
2000-01-012000-01-012010-01-012017-01-052017-01-022017-10-012017-11-012017-11-072017-11-11

6.2.datetime函數(shù)

年-月-日 時:分:秒:毫秒時間函數(shù):yyyy-mm-ddThh:MM:SS:sssZ

6.2.1.獲取datetime

  • datetime(): datetime([{timezone}])

    return datetime() //2024-04-01T10:02:28.192Z
    return datetime({timezone: 'America/Los Angeles'}) // 2024-04-01T03:02:28.238-07:00[America/Los_Angeles]

  • datetime.transaction(): datetime.transaction([{timezone}])

    return datetime.transaction() //2024-04-01T18:02:28.290Z
    RETURN datetime.transaction('America/Los Angeles') //2024-04-01T03:02:28.338-07:00[America/Los_Angeles]

  • datetime.statement(): datetime.statement([{timezone}])

    return datetime.statement() //2024-04-01T10:02:28.395Z

  • datetime.realtime(): datetime.realtime([{timezone}])

    return datetime.realtime() //2024-04-01T10:02:28.494444Z

6.2.2.創(chuàng)建datatime時間

datetime()返回一個帶時區(qū)的datetime值,其中包含指定的年、月、日、時、分、秒、毫秒、微秒、納秒和時區(qū)組件值。

  • 創(chuàng)建 年-月-日 時:分:秒: datetime({year [, month, day, hour, minute, second, millisecond, microsecond, nanosecond, timezone]})
    實例:

    unwind[datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, millisecond: 123, microsecond: 456, nanosecond: 789}),datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, millisecond: 645, timezone: '+01:00'}),datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: 'Europe/Stockholm'}),datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14, timezone: '+01:00'}),datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, second: 14}),datetime({year: 1984, month: 10, day: 11, hour: 12, minute: 31, timezone: 'Europe/Stockholm'}),datetime({year: 1984, month: 10, day: 11, hour: 12, timezone: '+01:00'}),datetime({year: 1984, month: 10, day: 11, timezone: 'Europe/Stockholm'})
    ] as theDate return theDate
    

    結(jié)果:

    返回值
    1984-10-11T12:31:14.123456789Z
    1984-10-11T12:31:14.645+01:00
    1984-10-11T12:31:14.645876123+01:00[Europe/Stockholm]
    1984-10-11T12:31:14+01:00
    1984-10-11T12:31:14Z
    1984-10-11T12:31+01:00[Europe/Stockholm]
    1984-10-11T12:00+01:00
    1984-10-11T00:00+01:00[Europe/Stockholm]
  • 創(chuàng)建 年-周-日: datetime({year [, week, dayOfWeek, hour, minute, second, millisecond, microsecond, nanosecond, timezone]})
    實例:

    unwind[datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, minute: 31, second: 14, millisecond: 645}),datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, minute: 31, second: 14, microsecond: 645876, timezone: '+01:00'}),datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: 'Europe/Stockholm'}),datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, minute: 31, second: 14, timezone: 'Europe/Stockholm'}),datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, minute: 31, second: 14}),datetime({year: 1984, week: 10, dayOfWeek: 3, hour: 12, timezone: '+01:00'}),datetime({year: 1984, week: 10, dayOfWeek: 3, timezone: 'Europe/Stockholm'})
    ] as theDate return theDate
    

    結(jié)果:

    返回值
    1984-03-07T12:31:14.645Z
    1984-03-07T12:31:14.645876+01:00
    1984-03-07T12:31:14.645876123+01:00[Europe/Stockholm]
    1984-03-07T12:31:14+01:00[Europe/Stockholm]
    1984-03-07T12:31:14Z
    1984-03-07T12:00+01:00
    1984-03-07T00:00+01:00[Europe/Stockholm]
  • 創(chuàng)建 年-季度-日: datetime({year [, quarter, dayOfQuarter, hour, minute, second, millisecond, microsecond, nanosecond, timezone]})
    實例:

    unwind[datetime({year: 1984, quarter: 3, dayOfQuarter: 45, hour: 12, minute: 31, second: 14, microsecond: 645876}),datetime({year: 1984, quarter: 3, dayOfQuarter: 45, hour: 12, minute: 31, second: 14, timezone: '+01:00'}),datetime({year: 1984, quarter: 3, dayOfQuarter: 45, hour: 12, timezone: 'Europe/Stockholm'}),datetime({year: 1984, quarter: 3, dayOfQuarter: 45})
    ] as theDate return theDate
    

    結(jié)果:

    返回值
    1984-08-14T12:31:14.645876Z
    1984-08-14T12:31:14+01:00
    1984-08-14T12:00+02:00[Europe/Stockholm]
    1984-08-14T00:00Z
  • 創(chuàng)建 年-日: datetime({year [, ordinalDay, hour, minute, second, millisecond, microsecond, nanosecond, timezone]})
    實例:

    unwind[datetime({year: 1984, ordinalDay: 202, hour: 12, minute: 31, second: 14, millisecond: 645}),datetime({year: 1984, ordinalDay: 202, hour: 12, minute: 31, second: 14, timezone: '+01:00'}),datetime({year: 1984, ordinalDay: 202, timezone: 'Europe/Stockholm'}),datetime({year: 1984, ordinalDay: 202})
    ] as theDate return theDate
    

    結(jié)果:

    返回值
    1984-07-20T12:31:14.645Z
    1984-07-20T12:31:14+01:00
    1984-07-20T00:00+02:00[Europe/Stockholm]
    1984-07-20T00:00Z
  • 創(chuàng)建 根據(jù)時間字符串: datetime(temporalValue)
    實例:

    unwind[datetime('2015-07-21T21:40:32.142+0100'),datetime('2015-W30-2T214032.142Z'),datetime('2015T214032-0100'),datetime('20150721T21:40-01:30'),datetime('2015-W30T2140-02'),datetime('2015202T21+18:00'),datetime('2015-07-21T21:40:32.142[Europe/London]'),datetime('2015-07-21T21:40:32.142-04[America/New_York]')
    ] as theDate return theDate
    

    結(jié)果:

    返回值
    2015-07-21T21:40:32.142+01:00
    2015-07-21T21:40:32.142Z
    2015-01-01T21:40:32-01:00
    2015-07-21T21:40-01:30
    2015-07-20T21:40-02:00
    2015-07-21T21:00+18:00
    2015-07-21T21:40:32.142+01:00[Europe/London]
    2015-07-21T21:40:32.142-04:00[America/New_York]
  • 創(chuàng)建 使用其他時間組件:
    datetime({datetime [, year, ..., timezone]}) | datetime({date [, year, ..., timezone]}) | datetime({time [, year, ..., timezone]}) | datetime({date, time [, year, ..., timezone]})
    實例:

    with date({year: 1984, month: 10, day: 11}) as dd
    return
    datetime({date: dd, hour: 10, minute: 10, second: 10}) as dateHHMMSS,
    datetime({date: dd, hour: 10, minute: 10, second: 10, timezone:'+05:00'}) as dateHHMMSSTimezone,
    datetime({date: dd, day: 28, hour: 10, minute: 10, second: 10}) as dateDDHHMMSS,
    datetime({date: dd, day: 28, hour: 10, minute: 10, second: 10, timezone:'Pacific/Honolulu'}) as dateDDHHMMSSTimezone
    

    結(jié)果:

    dateHHMMSSdateHHMMSSTimezonedateDDHHMMSSdateDDHHMMSSTimezone
    1984-10-11T10:10:10Z1984-10-11T10:10:10+05:001984-10-28T10:10:10Z1984-10-28T10:10:10-10:00[Pacific/Honolulu]
  • 創(chuàng)建 根據(jù)時間戳: datetime({ epochSeconds | epochMillis })

    return datetime({epochSeconds: timestamp() / 1000, nanosecond: 23}) //2022-06-14T10:02:30.000000023Z
    return datetime({epochMillis: 424797300000}) //1983-06-18T15:15Z

6.2.3.分割datetime

返回datetime通過在指定組件邊界(由作為參數(shù)傳遞給函數(shù)的截斷單元表示)處最近的先前時間點處截斷指定瞬時值而獲得的值。
datetime.truncate(unit [, temporalInstantValue [, mapOfComponents ] ])

參數(shù)含義
unit求值為以下字符串之一的字符串表達式:‘millennium’、‘century’、‘decade’、‘year’、‘weekYear’、‘quarter’、‘month’、‘week’、‘day’、‘hour’、‘minute’、‘second’、‘millisecond’、‘microsecond’。
temporalInstantValue以下類型之一的表達式:ZONED DATETIME, LOCAL DATETIME, DATE
mapOfComponents求值為包含小于單位的組件的映射的表達式。在截斷期間,可以使用鍵時區(qū)附加或覆蓋時區(qū)。

實例:

withdatetime({year:2017, month:11, day:11,hour:12, minute:31, second:14, nanosecond: 645876123,timezone: '+03:00'}) AS d
returndatetime.truncate('millennium', d, {timezone: 'Europe/Stockholm'}) as truncMillenium,datetime.truncate('year', d, {day: 5}) as truncYear,datetime.truncate('month', d) as truncMonth,datetime.truncate('day', d, {millisecond: 2}) as truncDay,datetime.truncate('hour', d) as truncHour,datetime.truncate('second', d) as truncSecond

結(jié)果:

truncMilleniumtruncYeartruncMonthtruncDaytruncHourtruncSecond
2000-01-01T00:00+01:00[Europe/Stockholm]2017-01-05T00:00+03:002017-11-01T00:00+03:002017-11-11T00:00:00.002+03:002017-11-11T12:00+03:002017-11-11T12:31:14+03:00

6.3.localdatetime函數(shù)

年-月-日 時:分:秒:毫秒時間函數(shù):yyyy-mm-ddThh:MM:SS:sss

6.3.1.獲取localdatetime

  • localdatetime(): localdatetime([{timezone}])

    return localdatetime() //2024-04-01T10:02:30.447
    return localdatetime({timezone: 'America/Los Angeles'}) // 2024-04-01T03:02:30.482

  • localdatetime.transaction(): localdatetime.transaction([{timezone}])

    return localdatetime.transaction() //2024-04-01T10:02:30.532

  • localdatetime.statement(): localdatetime.statement([{timezone}])

    return localdatetime.statement() //2024-04-01T10:02:30.570

  • localdatetime.realtime(): localdatetime.realtime([{timezone}])

    return localdatetime.realtime() //2024-04-01T10:02:30.647817
    return localdatetime.realtime('America/Los Angeles') //2024-04-01T03:02:30.691099

6.3.2.創(chuàng)建localdatetime

  • 創(chuàng)建 年-月-日:
    localdatetime({year [, month, day, hour, minute, second, millisecond, microsecond, nanosecond]})

    return localdatetime({year: 1984, month: 10, day: 11,hour: 12, minute: 31, second: 14, millisecond: 123, microsecond: 456, nanosecond: 789}) as theDate
    
    返回值
    1984-10-11T12:31:14.123456789
  • 創(chuàng)建 年-周-日:
    localdatetime({year [, week, dayOfWeek, hour, minute, second, millisecond, microsecond, nanosecond]})

    return
    localdatetime({year: 1984, week: 10, dayOfWeek: 3,hour: 12, minute: 31, second: 14, millisecond: 645
    }) as theDate
    
    返回值
    1984-03-07T12:31:14.645
  • 創(chuàng)建 年-季-日:
    localdatetime({year [, quarter, dayOfQuarter, hour, minute, second, millisecond, microsecond, nanosecond]})

    return
    localdatetime({
    year: 1984, quarter: 3, dayOfQuarter: 45,
    hour: 12, minute: 31, second: 14, nanosecond: 645876123
    }) as theDate
    
    返回值
    1984-08-14T12:31:14.645876123
  • 創(chuàng)建 年-日:
    localdatetime({year [, ordinalDay, hour, minute, second, millisecond, microsecond, nanosecond]})

    return
    localdatetime({
    year: 1984, ordinalDay: 202,
    hour: 12, minute: 31, second: 14, microsecond: 645876
    }) as theDate
    
    返回值
    1984-07-20T12:31:14.645876
  • 創(chuàng)建 時間格式字符串: localdatetime(temporalValue)

    unwind [localdatetime('2015-07-21T21:40:32.142'),localdatetime('2015-W30-2T214032.142'),localdatetime('2015-202T21:40:32'),localdatetime('2015202T21')] as theDate
    return theDate
    
    返回值
    2015-07-21T21:40:32.142
    2015-07-21T21:40:32.142
    2015-07-21T21:40:32
    2015-07-21T21:00
  • 創(chuàng)建 使用其他時間組件:
    localdatetime({datetime [, year, ..., nanosecond]}) | localdatetime({date [, year, ..., nanosecond]}) | localdatetime({time [, year, ..., nanosecond]}) | localdatetime({date, time [, year, ..., nanosecond]})
    實例1:

    with date({year: 1984, month: 10, day: 11}) as dd
    returnlocaldatetime({date: dd, hour: 10, minute: 10, second: 10}) as dateHHMMSS,localdatetime({date: dd, day: 28, hour: 10, minute: 10, second: 10}) as dateDDHHMMSS
    
    dateHHMMSSdateDDHHMMSS
    1984-10-11T10:10:101984-10-28T10:10:10

    實例2:

    WITHdatetime({year: 1984, month: 10, day: 11,hour: 12,timezone: '+01:00'}) as dd
    returnlocaldatetime({datetime: dd}) as dateTime,localdatetime({datetime: dd, day: 28, second: 42}) as dateTimeDDSS
    
    dateTimedateTimeDDSS
    1984-10-11T12:001984-10-28T12:00:42

6.3.3.分割localdatetime

localdatetime.truncate(unit [, temporalInstantValue [, mapOfComponents ] ])
實例:

withlocaldatetime({year: 2017, month: 11, day: 11,hour: 12, minute: 31, second: 14, nanosecond: 645876123}) as d
returnlocaldatetime.truncate('millennium', d) as truncMillenium,localdatetime.truncate('year', d, {day: 2}) as truncYear,localdatetime.truncate('month', d) as truncMonth,localdatetime.truncate('day', d) as truncDay,localdatetime.truncate('hour', d, {nanosecond: 2}) as truncHour,localdatetime.truncate('second', d) as truncSecond
truncMilleniumtruncYeartruncMonthtruncDaytruncHourtruncSecond
2000-01-01T00:002017-01-02T00:002017-11-01T00:002017-11-11T00:002017-11-11T12:00:00.0000000022017-11-11T12:31:14

6.4.localtime函數(shù)

時:分:秒:毫秒時間函數(shù):hh:MM:SS.sss

6.4.1.獲取localtime

  • localtime(): localtime([{timezone}])

    return localtime() //10:02:30.447
    return localtime({timezone: 'America/Los Angeles'}) // 03:02:30.482

  • localtime.transaction(): localtime.transaction([{timezone}])

    return localtime.transaction() //10:02:30.532

  • localtime.statement(): localtime.statement([{timezone}])

    return localtime.statement() //10:02:30.570

  • localtime.realtime(): localtime.realtime([{timezone}])

    return localtime.realtime() //10:02:30.647817
    return localtime.realtime('America/Los Angeles') //03:02:30.691099

6.4.2.創(chuàng)建localtime

  • 創(chuàng)建localtime:
    localtime({hour [, minute, second, millisecond, microsecond, nanosecond]})

    unwind[localtime({hour: 12, minute: 31, second: 14, nanosecond: 789, millisecond: 123, microsecond: 456}),localtime({hour: 12, minute: 31, second: 14}),localtime({hour: 12})
    ] as theTime
    return theTime
    
    返回值
    12:31:14.123456789
    12:31:14
    12:00
  • 創(chuàng)建 根據(jù)Time格式字符串: localtime(temporalValue)

    unwind[localtime('21:40:32.142'),localtime('214032.142'),localtime('21:40'),localtime('21')
    ] as theTime
    return theTime
    
    返回值
    21:40:32.142
    21:40:32.142
    21:40
    21:00
  • 創(chuàng)建 使用其他時間組件: localtime({time [, hour, ..., nanosecond]})
    實例:

    with time({hour: 12, minute: 31, second: 14, microsecond: 645876, timezone: '+01:00'}) as tt
    returnlocaltime({time: tt}) as timeOnly,localtime({time: tt, second: 42}) as timeSS
    
    timeOnlytimeSS
    12:31:14.64587612:31:42.645876

6.4.3.分割localime

localtime.truncate(unit [, temporalInstantValue [, mapOfComponents ] ])
實例:

with time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '-01:00'}) as t
returnlocaltime.truncate('day', t) as truncDay,localtime.truncate('hour', t) as truncHour,localtime.truncate('minute', t, {millisecond: 2}) as truncMinute,localtime.truncate('second', t) as truncSecond,localtime.truncate('millisecond', t) as truncMillisecond,localtime.truncate('microsecond', t) as truncMicrosecond
truncDaytruncHourtruncMinutetruncSecondtruncMillisecondtruncMicrosecond
00:00:0012:00:0012:31:00.00200000012:31:1412:31:14.64500000012:31:14.645876000

6.5.time函數(shù)

時:分:秒:毫秒時間函數(shù):hh:MM:SS.sssZ

6.4.1.獲取time

  • time(): time([{timezone}])

    return time() //10:02:30.447
    return time({timezone: 'America/Los Angeles'}) // 03:02:32.351-07:00

  • time.transaction(): localtime.transaction([{timezone}])

    return time.transaction() //10:02:30.532Z

  • time.statement(): localtime.statement([{timezone}])

    return time.statement() //10:02:30.570Z

  • time.realtime(): localtime.realtime([{timezone}])

    return time.realtime() //10:02:30.647817Z
    return time.realtime('America/Los Angeles') //03:02:32.351-07:00

6.4.2.創(chuàng)建time

  • 創(chuàng)建localtime:
    time({hour [, minute, second, millisecond, microsecond, nanosecond, timezone]})

    unwind[time({hour: 12, minute: 31, second: 14, millisecond: 123, microsecond: 456, nanosecond: 789}),time({hour: 12, minute: 31, second: 14, nanosecond: 645876123}),time({hour: 12, minute: 31, second: 14, microsecond: 645876, timezone: '+01:00'}),time({hour: 12, minute: 31, timezone: '+01:00'}),time({hour: 12, timezone: '+01:00'})
    ] as theTime
    return theTime
    
    返回值
    12:31:14.123456789Z
    12:31:14.645876123Z
    12:31:14.645876000+01:00
    12:31:00+01:00
    12:00:00+01:00
  • 創(chuàng)建 根據(jù)Time格式字符串: time(temporalValue)

    unwind[time('21:40:32.142+0100'),time('214032.142Z'),time('21:40:32+01:00'),time('214032-0100'),time('21:40-01:30'),time('2140-00:00'),time('2140-02'),time('22+18:00')] as theTime
    return theTime
    
    返回值
    21:40:32.142000000+01:00
    21:40:32.142000000Z
    21:40:32+01:00
    21:40:32-01:00
    21:40:00-01:30
    21:40:00Z
    21:40:00-02:00
    22:00:00+18:00
  • 創(chuàng)建 使用其他時間組件: time({time [, hour, ..., timezone]})
    實例:

    with localtime({hour: 12, minute: 31, second: 14, microsecond: 645876}) AS tt
    returntime({time: tt}) as timeOnly,time({time: tt, timezone: '+05:00'}) as timeTimezone,time({time: tt, second: 42}) as timeSS,time({time: tt, second: 42, timezone: '+05:00'}) as timeSSTimezone
    
    timeOnlytimeTimezonetimeSStimeSSTimezone
    12:31:14.645876Z12:31:14.645876+05:0012:31:42.645876Z12:31:42.645876+05:00

6.4.3.分割localime

time.truncate(unit [, temporalInstantValue [, mapOfComponents ] ])
實例:

with time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '-01:00'}) as t
return time.truncate('day', t) as truncDay,time.truncate('hour', t) as truncHour,time.truncate('minute', t) as truncMinute,time.truncate('second', t) as truncSecond,time.truncate('millisecond', t, {nanosecond: 2}) as truncMillisecond,time.truncate('microsecond', t) as truncMicrosecond
truncDaytruncHourtruncMinutetruncSecondtruncMillisecondtruncMicrosecond
00:00:00-01:0012:00:00-01:0012:31:00-01:0012:31:14-01:0012:31:14.645000002-01:0012:31:14.645876000-01:00
http://www.risenshineclean.com/news/30227.html

相關(guān)文章:

  • 北京網(wǎng)站推廣seo優(yōu)化頁面設(shè)計
  • 西安門戶網(wǎng)站建設(shè)公司哪家好軟文廣告經(jīng)典案例600
  • 怎么在word里做網(wǎng)站百度競價代運營公司
  • 綜合社區(qū)網(wǎng)站開發(fā)費用公司網(wǎng)站建設(shè)費
  • 電銷防封號系統(tǒng)seo入門到精通
  • 娛樂公司網(wǎng)站建設(shè)價格電腦培訓(xùn)學(xué)校排名
  • 成都企業(yè)網(wǎng)站建站大數(shù)據(jù)精準營銷的策略
  • 新疆建設(shè)管理局網(wǎng)站seo基礎(chǔ)教程使用
  • 網(wǎng)絡(luò)營銷推廣的優(yōu)劣勢深圳短視頻seo教程
  • 怎么增加網(wǎng)站的外鏈手機系統(tǒng)優(yōu)化
  • 煙臺網(wǎng)站建設(shè)公司鏈接推廣平臺
  • 鹽城網(wǎng)站開發(fā)招代理最火的網(wǎng)絡(luò)推廣平臺
  • dede網(wǎng)站模版百度app優(yōu)化
  • 國外優(yōu)秀設(shè)計網(wǎng)站推薦seo關(guān)鍵字排名優(yōu)化
  • 中國公司排行榜前十名seo怎么發(fā)布外鏈
  • wordpress網(wǎng)站添加背景音樂自助建站系統(tǒng)個人網(wǎng)站
  • 網(wǎng)站建設(shè)功能是什么意思萬詞優(yōu)化
  • web模板免費下載網(wǎng)站常見的推廣平臺有哪些
  • 臨海網(wǎng)站制作費用如何記賬網(wǎng)站優(yōu)化 福州
  • 網(wǎng)頁設(shè)計與制作06386自考真題windows優(yōu)化大師官方下載
  • 免費com域名注冊網(wǎng)站上海seo推廣整站
  • 天津平臺網(wǎng)站建設(shè)哪家好如何免費建立一個網(wǎng)站
  • 做網(wǎng)站代理怎么樣成人本科報考官網(wǎng)
  • wordpress add_filter青島seo網(wǎng)絡(luò)優(yōu)化公司
  • 揚州城鄉(xiāng)建設(shè)局網(wǎng)站移動端優(yōu)化
  • 做任務(wù)懸賞網(wǎng)站百度網(wǎng)頁版登錄入口官網(wǎng)
  • 企業(yè)網(wǎng)盤是什么優(yōu)化關(guān)鍵詞排名seo
  • 源碼網(wǎng)站下載網(wǎng)絡(luò)推廣培訓(xùn)去哪里好
  • 無錫大型網(wǎng)站建設(shè)公司谷歌網(wǎng)站優(yōu)化
  • 上海鴻鵠設(shè)計公司seo頁面內(nèi)容優(yōu)化