/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace OpenSearch.Client { // ReSharper disable InconsistentNaming //these const reflect their output on purpose public static class DateFormat { ///A basic formatter that combines a basic date and time, separated by a T: yyyyMMdd'T'HHmmss.SSSZ. public const string basic_date = "basic_date"; ///A basic formatter that combines a basic date and time, separated by a T: yyyyMMdd'T'HHmmss.SSSZ. public const string basic_date_time = "basic_date_time"; ///A basic formatter that combines a basic date and time without millis, separated by a T: yyyyMMdd'T'HHmmssZ. public const string basic_date_time_no_millis = "basic_date_time_no_millis"; ///A formatter for a full ordinal date, using a four digit year and three digit dayOfYear: yyyyDDD. public const string basic_ordinal_date = "basic_ordinal_date"; ///A formatter for a full ordinal date and time, using a four digit year and three digit dayOfYear: yyyyDDD'T'HHmmss.SSSZ. public const string basic_ordinal_date_time = "basic_ordinal_date_time"; ///A formatter for a full ordinal date and time without millis, using a four digit year and three digit dayOfYear: yyyyDDD'T'HHmmssZ. public const string basic_ordinal_date_time_no_millis = "basic_ordinal_date_time_no_millis"; /// /// A basic formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit millis, and time /// zone off set prefixed by T: 'T'HHmmss.SSSZ. /// public const string basic_t_time = "basic_t_time"; /// /// A basic formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset prefixed /// by T: 'T'HHmmssZ. /// public const string basic_t_time_no_millis = "basic_t_time_no_millis"; /// /// A basic formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit millis, and time /// zone offset: HHmmss.SSSZ. /// public const string basic_time = "basic_time"; /// /// A basic formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset: /// HHmmssZ. /// public const string basic_time_no_millis = "basic_time_no_millis"; ///A basic formatter for a full date as four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx'W'wwe. public const string basic_week_date = "basic_week_date"; ///A basic formatter that combines a basic weekyear date and time, separated by a T: xxxx'W'wwe'T'HHmmss.SSSZ. public const string basic_week_date_time = "basic_week_date_time"; ///A basic formatter that combines a basic weekyear date and time without millis, separated by a T: xxxx'W'wwe'T'HHmmssZ. public const string basic_week_date_time_no_millis = "basic_week_date_time_no_millis"; ///A formatter for a full date as four digit year, two digit month of year, and two digit day of month: yyyy-MM-dd. public const string date = "date"; ///A formatter that combines a full date and two digit hour of day: yyyy-MM-dd'T'HH. public const string date_hour = "date_hour"; ///A formatter that combines a full date, two digit hour of day, and two digit minute of hour: yyyy-MM-dd'T'HH:mm. public const string date_hour_minute = "date_hour_minute"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, and two digit second of minute: /// yyyy-MM-dd'T'HH:mm:ss. /// public const string date_hour_minute_second = "date_hour_minute_second"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, two digit second of minute, and three /// digit fraction of second: yyyy-MM-dd'T'HH:mm:ss.SSS. /// public const string date_hour_minute_second_fraction = "date_hour_minute_second_fraction"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, two digit second of minute, and three /// digit fraction of second: yyyy-MM-dd'T'HH:mm:ss.SSS. /// public const string date_hour_minute_second_millis = "date_hour_minute_second_millis"; ///A basic formatter for a full date as four digit year, two digit month of year, and two digit day of month: yyyyMMdd. public const string date_optional_time = "date_optional_time"; ///A formatter that combines a full date and time, separated by a T: yyyy-MM-dd'T'HH:mm:ss.SSSZZ. public const string date_time = "date_time"; ///A formatter that combines a full date and time without millis, separated by a T: yyyy-MM-dd'T'HH:mm:ssZZ. public const string date_time_no_millis = "date_time_no_millis"; /// /// A formatter for the number of milliseconds since the epoch. Note, that this timestamp is subject to the limits of a Java /// Long.MIN_VALUE and Long.MAX_VALUE. /// public const string epoch_millis = "epoch_millis"; /// /// A formatter for the number of seconds since the epoch. Note, that this timestamp is subject to the limits of a Java Long.MIN_VALUE /// and Long. MAX_VALUE divided by 1000 (the number of milliseconds in a second). /// public const string epoch_second = "epoch_second"; ///A formatter for a two digit hour of day: HH public const string hour = "hour"; ///A formatter for a two digit hour of day and two digit minute of hour: HH:mm. public const string hour_minute = "hour_minute"; ///A formatter for a two digit hour of day, two digit minute of hour, and two digit second of minute: HH:mm:ss. public const string hour_minute_second = "hour_minute_second"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and three digit fraction of second: /// HH:mm:ss.SSS. /// public const string hour_minute_second_fraction = "hour_minute_second_fraction"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and three digit fraction of second: /// HH:mm:ss.SSS. /// public const string hour_minute_second_millis = "hour_minute_second_millis"; ///A formatter for a full ordinal date, using a four digit year and three digit dayOfYear: yyyy-DDD. public const string ordinal_date = "ordinal_date"; ///A formatter for a full ordinal date and time, using a four digit year and three digit dayOfYear: yyyy-DDD'T'HH:mm:ss.SSSZZ. public const string ordinal_date_time = "ordinal_date_time"; /// /// A formatter for a full ordinal date and time without millis, using a four digit year and three digit dayOfYear: /// yyyy-DDD'T'HH:mm:ssZZ. /// public const string ordinal_date_time_no_millis = "ordinal_date_time_no_millis"; ///A basic formatter for a full date as four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx'W'wwe. public const string strict_basic_week_date = "strict_basic_week_date"; ///A basic formatter that combines a basic weekyear date and time, separated by a T: xxxx'W'wwe'T'HHmmss.SSSZ. public const string strict_basic_week_date_time = "strict_basic_week_date_time"; ///A basic formatter that combines a basic weekyear date and time without millis, separated by a T: xxxx'W'wwe'T'HHmmssZ. public const string strict_basic_week_date_time_no_millis = "strict_basic_week_date_time_no_millis"; ///A formatter for a full date as four digit year, two digit month of year, and two digit day of month: yyyy-MM-dd. public const string strict_date = "strict_date"; ///A formatter that combines a full date and two digit hour of day: yyyy-MM-dd'T'HH. public const string strict_date_hour = "strict_date_hour"; ///A formatter that combines a full date, two digit hour of day, and two digit minute of hour: yyyy-MM-dd'T'HH:mm. public const string strict_date_hour_minute = "strict_date_hour_minute"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, and two digit second of minute: /// yyyy-MM-dd'T'HH:mm:ss. /// public const string strict_date_hour_minute_second = "strict_date_hour_minute_second"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, two digit second of minute, and three /// digit fraction of second: yyyy-MM-dd'T'HH:mm:ss.SSS. /// public const string strict_date_hour_minute_second_fraction = "strict_date_hour_minute_second_fraction"; /// /// A formatter that combines a full date, two digit hour of day, two digit minute of hour, two digit second of minute, and three /// digit fraction of second: yyyy-MM-dd'T'HH:mm:ss.SSS. /// public const string strict_date_hour_minute_second_millis = "strict_date_hour_minute_second_millis"; ///A formatter that combines a full date and time, separated by a T: yyyy-MM-dd'T'HH:mm:ss.SSSZZ. public const string strict_date_time = "strict_date_time"; ///A formatter that combines a full date and time without millis, separated by a T: yyyy-MM-dd'T'HH:mm:ssZZ. public const string strict_date_time_no_millis = "strict_date_time_no_millis"; ///A formatter for a two digit hour of day: HH public const string strict_hour = "strict_hour"; ///A formatter for a two digit hour of day and two digit minute of hour: HH:mm. public const string strict_hour_minute = "strict_hour_minute"; ///A formatter for a two digit hour of day, two digit minute of hour, and two digit second of minute: HH:mm:ss. public const string strict_hour_minute_second = "strict_hour_minute_second"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and three digit fraction of second: /// HH:mm:ss.SSS. /// public const string strict_hour_minute_second_fraction = "strict_hour_minute_second_fraction"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and three digit fraction of second: /// HH:mm:ss.SSS. /// public const string strict_hour_minute_second_millis = "strict_hour_minute_second_millis"; ///A formatter for a full ordinal date, using a four digit year and three digit dayOfYear: yyyy-DDD. public const string strict_ordinal_date = "strict_ordinal_date"; ///A formatter for a full ordinal date and time, using a four digit year and three digit dayOfYear: yyyy-DDD'T'HH:mm:ss.SSSZZ. public const string strict_ordinal_date_time = "strict_ordinal_date_time"; /// /// A formatter for a full ordinal date and time without millis, using a four digit year and three digit dayOfYear: /// yyyy-DDD'T'HH:mm:ssZZ. /// public const string strict_ordinal_date_time_no_millis = "strict_ordinal_date_time_no_millis"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit fraction of second, and /// time zone offset prefixed by T: 'T'HH:mm:ss.SSSZZ. /// public const string strict_t_time = "strict_t_time"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset prefixed by T: /// 'T'HH:mm:ssZZ. /// public const string strict_t_time_no_millis = "strict_t_time_no_millis"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit fraction of second, and /// time zone offset: HH:mm:ss.SSSZZ. /// public const string strict_time = "strict_time"; ///A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset: HH:mm:ssZZ. public const string strict_time_no_millis = "strict_time_no_millis"; ///A formatter for a full date as four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx-'W'ww-e. public const string strict_week_date = "strict_week_date"; ///A formatter that combines a full weekyear date and time, separated by a T: xxxx-'W'ww-e'T'HH:mm:ss.SSSZZ. public const string strict_week_date_time = "strict_week_date_time"; ///A formatter that combines a full weekyear date and time without millis, separated by a T: xxxx-'W'ww-e'T'HH:mm:ssZZ. public const string strict_week_date_time_no_millis = "strict_week_date_time_no_millis"; ///A formatter for a four digit weekyear: xxxx. public const string strict_weekyear = "strict_weekyear"; ///A formatter for a four digit weekyear and two digit week of weekyear: xxxx-'W'ww. public const string strict_weekyear_week = "strict_weekyear_week"; ///A formatter for a four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx-'W'ww-e. public const string strict_weekyear_week_day = "strict_weekyear_week_day"; ///A formatter for a four digit year: yyyy. public const string strict_year = "strict_year"; ///A formatter for a four digit year and two digit month of year: yyyy-MM. public const string strict_year_month = "strict_year_month"; ///A formatter for a four digit year, two digit month of year, and two digit day of month: yyyy-MM-dd. public const string strict_year_month_day = "strict_year_month_day"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit fraction of second, and /// time zone offset prefixed by T: 'T'HH:mm:ss.SSSZZ. /// public const string t_time = "t_time"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset prefixed by T: /// 'T'HH:mm:ssZZ. /// public const string t_time_no_millis = "t_time_no_millis"; /// /// A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, three digit fraction of second, and /// time zone offset: HH:mm:ss.SSSZZ. /// public const string time = "time"; ///A formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and time zone offset: HH:mm:ssZZ. public const string time_no_millis = "time_no_millis"; ///A formatter for a full date as four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx-'W'ww-e. public const string week_date = "week_date"; ///A formatter that combines a full weekyear date and time, separated by a T: xxxx-'W'ww-e'T'HH:mm:ss.SSSZZ. public const string week_date_time = "week_date_time"; ///A formatter that combines a full weekyear date and time without millis, separated by a T: xxxx-'W'ww-e'T'HH:mm:ssZZ. public const string week_date_time_no_millis = "week_date_time_no_millis"; ///A formatter for a four digit weekyear: xxxx. public const string weekyear = "weekyear"; ///A formatter for a four digit weekyear and two digit week of weekyear: xxxx-'W'ww. public const string weekyear_week = "weekyear_week"; ///A formatter for a four digit weekyear, two digit week of weekyear, and one digit day of week: xxxx-'W'ww-e. public const string weekyear_week_day = "weekyear_week_day"; ///A formatter for a four digit year: yyyy. public const string year = "year"; ///A formatter for a four digit year and two digit month of year: yyyy-MM. public const string year_month = "year_month"; ///A formatter for a four digit year, two digit month of year, and two digit day of month: yyyy-MM-dd. public const string year_month_day = "year_month_day"; } }