date_trunc snowflake. date_trunc(part: Union[Column, str], expr: Union[Column, str]) → Column [source] Truncates a DATE, TIME, or TIMESTAMP to the specified precision. date_trunc snowflake

 
date_trunc(part: Union[Column, str], expr: Union[Column, str]) → Column [source] Truncates a DATE, TIME, or TIMESTAMP to the specified precisiondate_trunc snowflake  For example, if the input value is a TIMESTAMP, then the returned value is a TIMESTAMP

In fact the date_trunc starts on Sunday when I use the snowflake datawarehouse. DATE_TRUNC function Usage. Divide by 12 to get the integer number of years; i. It does not truncate or manipulate the timestamp's granularity. As defined in the ISO 8601 standard (for dates and time formats), ISO weeks always start on Monday and “belong” to the year that contains the Thursday of that week. When date_or_time_part is dayofweek or yearofweek (or any of their variations), the output is controlled by the WEEK_OF_YEAR_POLICY and WEEK. A date to be converted into a timestamp. 4 years ago. DATE_TRUNC 에 대한 대체 구문을 제공합니다 (두 인자를 반대로 함). Using the Snowflake Information Schema. The data type returned by TRUNCATE (33. Customers receive usage statements every month for their accounts. 600000 14 14 13 65 casting, and rounding appear to not be what you want, thus TRUNC is the key here. +1 more. How to use DATE_TRUNC() in SQL. The string must start with the first two characters (case-insensitive) of the day name:1. TRUNC 過負荷です。. Retorna 1 (primeiro dia definido da semana) a 7 (último dia da semana em relação ao primeiro dia definido). one of the easy way to convert timestamp into date in snowflake is If you have created_date = 2023-10-18 08:36:59. Database :SNOWFLAKE_SAMPLE_DATA. 1. 123') --> 2015-05-08T23:39:00. So, if you take your timestamp column and trunc it day, it removes the time elements and gives you the beginning of the day. Snowflake: DATE_TRUNC has many supported periods it can truncate to: SELECT '1921-12-23'::date as d ,DATE_TRUNC('year', d) as d_trunc_to_year; gives: D D_TRUNC_TO_YEAR; 1921-12-23: 1921-01-01: Oracle: Oracle has TRUNC. I'm not sure what is the best way to convert the date format. 複数の行が評価される場合(例: 入力が複数の行を含むテーブルの列名である場合)、値が秒. Improve this question. If you’d rather not receive future emails from Snowflake,A more general form of the question is Snowflake takes the simpler approach, and answer all units of date_diff in the difference of the values at the unit compared. SELECT * FROM final WHERE order_date BETWEEN DATE_TRUNC('year', DATEADD('year', -2, current_date)) AND current_date;. date_trunc (part: Union [Column, str], expr: Union [Column, str]) → Column [source] ¶ Truncates a DATE, TIME, or TIMESTAMP to the specified precision. WITH MY_CTE AS ( SELECT PRS_ID, DATE_TRUNC (MONTH, MIN (BGN_DATE)) AS MONTH_START FROM myTable WHERE EMP_STS = 'T' GROUP BY 1 ) SELECT TO_CHAR (MONTH_START, 'yyyy-mm') AS PERIOD, COUNT (PRS_ID) GROUP BY 1. e. 4 Answers Sorted by: 3 Try adding the :datebucket (date) in the select part as well (not only in group by). When converting from a type with less precision to a type with more precision, conversion uses default values. create temporary table test1 (id, date, cc) as (select 1, '2022-01-01', 1 union select 1, '2022-01-02', 2 union select 1, '2022-01-03', 3 union select 1, '2022-01-06', 4 union select 2, '2022-01-08',. SELECT date_part ('week', value)::int / 2, array_agg (value) FROM mydates GROUP BY 1. 1 to 31. Possible Values. g. date_part ( Optional) is the date part for which the last day is returned. DATE_TRUNC (with a WEEK part) Truncates the input week to start on Monday. TRY_TO_DATE. g. This value is used as a multiplier based on warehouse size and cost. For a variant expression: If the variant contains a string, a string conversion is performed. 이. Any valid year (e. Push out all due dates by one week. 167k232. Here are quick steps to get started with the Snowflake plugin in Amazon Managed Grafana: Step 1: Set up Amazon Managed Grafana; Step 2: Set up the Snowflake Data Source on Amazon Managed Grafana; Step 3: Set up Snowflake. DAYOFWEEK. Also, you need to study the week in snowflake. See the example below to see how you can aggregate by HOUR: SELECT SUM(number) AS total, TIMESTAMP_TRUNC (date, HOUR) AS hour FROM ( SELECT CAST('2021-02-04 12:50:01-7:00' AS. The date part to which to truncate the timestamp value. It specifies the offset from which the substring starts. Like most other SQL functions, you need to pass in arguments; for the DATE_PART function, you’ll pass in a date/timestamp/date field that you want to extract a date part from and specify the part you want removed. Snowflakeは、整数を秒として解釈することが意図されている場合にのみ、整数を含む文字列で TO_DATE、 TO_TIME または TO_TIMESTAMP を呼び出すことをお勧めします。. Improve this answer. The expression should evaluate to an integer from -38 to +38. functions. But, sometimes, we cannot get what we need. ). If the input data type is DATE, and the date_or_time_part is hours or. One way to trasnalte the code is to use Snowflake Scripting variables ( LET) instead of session variables ( SET ): begin let firstmonth DATE := '2022-03-01'; let lastmonth DATE := '2022-04-01'; let currmonth DATE := :firstmonth; while (currmonth <lastmonth) do insert into tmptable ( col1, col2) select 1,2 from tableA; currmonth := dateadd. You can pass the input number or string as the first parameter in the Ltrim function and then pass the 0 as the second. 날짜, 시간 또는 타임스탬프를 지정된 부분까지 자릅니다. DATE_TRUNC('MONTH',CURRENT_DATE()) will return the first day of month of specified date, in this case 2023-04-01; DATEADD (MONTH, -11, DATE_TRUNC ('MONTH', CURRENT_DATE ())) - this adds -11 month that is it will go back till last 11 months from the date specified date and our expression gives the 2023-04-01 so from this last 11 months will be. This series will take a deeper dive into the Information Schema (Snowflake’s data dictionary) and show you some practical ways to use this data to. 2017) DAY , DAYOFMONTH. Contents [ hide] 1 What is DATE_TRUNC () Function ? 2 How can we use DATE_TRUNC () Function ? 2. For example, if you want to add 2 days to August 1, 2018, then this will be '2018-08-01'::DATE. snowpark. 4. Tronque un DATE, TIME ou TIMESTAMP à la précision spécifiée. 1. This example uses TRUNC on a date to truncate it into a month. All the parameters have default values, which can be set and then overridden at different levels depending on the parameter type (Account, Session, or Object). TRUNC. When filtering based on a date and the report-timezone is specified, that date. Try adding the :datebucket (date) in the select part as well (not only in group by). g. which yields an output of: float_serial_number. But, sometimes, we cannot get what we need. 4 Full Example of IS NULL function in Snowflake. trunc. Last updated on Nov 17, 2023. Improve this answer. 31 Thanks!0. date_trunc('DAY', '2019-09-23 12:33:25') Output : 2019-09-23 00:00:00. Happy Learning !!1 Answer. snowpark. For example, truncating a timestamp down to the quarter returns the timestamp corresponding to midnight of the. EXTRACT (part FROM date) We state the type of extraction we want as part and then the source to be extracted date. 日付/時刻関数として使用して、 日付、時刻. This allows, for example, choosing the N-th day in a year, which can be. The function date_trunc is conceptually similar to the trunc function for numbers. DATE_TRUNC function Examples. This allows, for example, choosing the N-th day in a year, which can be. . As defined in the ISO 8601 standard (for dates and time formats), ISO weeks always start on Monday and “belong” to the year that contains the Thursday of that week. . snowpark. For example, if the input value is a. You might need to change SQL to the. cast (CREATED_DT AS Date) it will returns you only date. Like. Note that, after a clustered table is defined, reclustering does not necessarily start immediately. The start position is 1-based, not 0-based. Par exemple : En tronquant l’horodatage jusqu’au trimestre, on obtient l’horodatage correspondant à minuit du premier jour du trimestre pour l’horodatage entré. Adding more than 3-4 columns tends to increase costs more than benefits. date_or_time_expr. Collaboration With Snowflake. The Snowflake INTERVAL functions are commonly used to manipulate date and time variables or expressions. For source_tz and target_tz, you can specify a time zone name or a. In this blog, we will learn to group by time in Snowflake. Variables are defined with the set command. Instead you need to “truncate” your timestamp to the granularity you want, like minute, hour, day, week, etc. For example, if you want to add 2 days to August 1, 2018, then this will be '2018-08-01'::DATE. Year. end_time) group by 1 Using the same dataset as above, this query 7 executed in 2. I use the below function. The date_trunc function sets the default day to Monday. I've been successful in mysql removing weekend days from a date range using the formula below where @s = start date and @e = end date in the range. select * from json_weather_data_view where date_trunc('month',observation_time) = '2018-01-01' limit 20; Notice the results look just like a regular structured data source. 2. Work out the number of months from a fixed financial year starting point, e. Note that truncation is not the same as extraction. TO_TIME. 5 is rounded to -1. How would we do it if we want to. Day (number) of the month. Note that truncation is. While loading data from Oracle to Snowflake, we are seeing Float truncate issues. functions. Data Catalog. FollowDATE_TRUNC is a necessity when conducting cohort analyses, where you typically group users by month. Rounds the input expression down to the nearest (or equal) integer closer to zero, or to the nearest equal or smaller value with the specified number of places after the decimal point. functions. Function 4: Extract or Date Part. 複数の行が評価される場合(例: 入力が複数の行を含むテーブルの列名である場合)、値が秒. The number of bytes if the input is BINARY. Note that truncation is not the same as extraction. You will then load test against custom API endpoints and scale the backend both vertically and horizontally to. 2017) DAY , DAYOFMONTH. Sometimes you’ll need to specify what format the string is in through the function arguments. Consider these objects: t1 » v1 » v2. How to Group by Time in Snowflake. SQL. Snowflake also provides the TRUNC function, but it requires the unit to be. The default is month. Expand Post. Hi @sm7746 , you don't need to write SQL scripts, you can simply bring the data in to Alteryx and convert the date accordingly using the DateTime tool. snowpark. Is there a simple way to return the last day of the most recent quarter in Snowflake? We use financial quarters with last days being: Jan. Notez que la troncation n’est pas la même chose que l’extraction. For example: If the monthly credit card bill to be paid by a customer is 89. Like for example If I pick a date_id to say 2020-01-15, that date_id should return dates from 2019-01-15 till 2020-01-15. ) before adjusting the time by hours. The example produces slots 0 - 11. date_trunc (part: ColumnOrName, expr: ColumnOrName) → Column [source] ¶ Truncates a DATE, TIME, or TIMESTAMP to the specified precision. Join our community of data professionals to learn, connect, share and innovate togetherTake two easy steps to create date_trunc: Break down the datetime into small parts (Year, Month, Day/Hour, Minute, Second) and extract the parts you need. DATE. I am following the ELT framework for modeling data in a Snowflake warehouse. As defined in the ISO 8601 standard (for dates and time formats), ISO weeks always start on Monday and “belong” to the year that contains the Thursday of that week. This blog post can provide you with a better understanding of Snowflake's Resource Optimization capabilities. For that we need to pass existing String date type format to parse. 1. 1 Syntax for IS NULL function in Snowflake; 3 Examples : 3. It is used in many business applications of Insurance and banking domain as it always rounds down and returns the largest integer less than or equal to a given number. date_or_time_expr must evaluate to a date, time, or timestamp. Traditionally, dbt models are defined using SQL. For example, suppose that the value is 31536002789. TO_UNIXTIME () – convert a regular date format into a unix time date. Snowflake:Epoch to Timestamp. snowpark. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this siteThe data type should be one of the numeric data types, such as FLOAT or NUMBER. For example, last week of August was between 29/8 to 4/9 then the query can give 29/8 and 1/9 as the result. If the value is a non-integer numeric value (for example, FLOAT) the value will be rounded to the nearest integer. EXTRACT. I want to truncate date to week but if a week runs over 2 months, it can truncate a new week start date at 1st day of the month as well. This is the number of months you want to add. 2 seconds, whereas the un-optimized version from earlier took 750 seconds. The new column should have **ALL** the last 365 dates for each date_id. Additional benefits include: 1. Hello there, I have different results depending on wether my data is in a Table or a View in Snowflake. the day belongs to. It worked. Using a built-in function on a native date object gives you a lot of control, but you give up all this power as soon as you turn a date to not a date. DATE_TRUNC の代替構文を提供します. functions. ) which lets you get the first day of the ISO week. I will definitely try this solution and keep you posted. Each date value contains the century, year, month, day, hour, minute, second and milliseconds. Snowflake bills credits on the accounts for Compute and Storage. e. DATE_TRUNC¶. For example, if you want to add 2 days, then the value is 2. SELECT DATE_TRUNC(month, start_time) AS usage_month , SUM(COALESCE(credits_used,. Calculate number of specific days between dates in Snowflake. 2,197 2 2 gold badges 27 27 silver badges 34 34. Add 1 if you prefer 1 - 12. This query is working for me to give me the running total of total IDs by week. You can then convert to the format you'd like. 1. Then that is our start of financial year. to snowflake. Compared to true difference in values, and then that being expressed in a time unit. date_or_time_part must be one of the values listed in . The name of each function. start_date)) as months from. help_center_openedBelow is a list of Snowflake Date functions with parameters, description and a possible return value. Truncates a DATE, TIME, or TIMESTAMP to the specified precision. I use the below function. If that's the case and they'll always be in the format 'yyyy-MM-dd', you can just take the first 8 characters and add '01': If you're working with date. Following is an example of how I used to use date_trunc to match queried timestamps to only the last 4 months including the current month, but only if a week has passed into this month already: WHERE date_trunc('month', QUERY_DATE) BETWEEN date_trunc('month', now()) - INTERVAL '4 MONTH' AND date_trunc('month', now() -. For example, if the input value is a TIMESTAMP, then the returned value is a TIMESTAMP. Snowflake date_trunc function docsTO_DATE() function accepts string/varchar format date and converts to Date Data type. As Lukasz points out the second parameter is the start_month SAP doc's. TRUNC( date_value, format ) You are providing a string value instead of a date value and 'dd-mm-yy' is an invalid format (you just want to truncate to the start of the day using 'dd' as the format or the start of the month using 'mm' or the start of the year using 'yy' - but using all three together does not make. If the dates contain times too, then no! Then the end date might be excluded. This function takes a timestamp or date and truncates it to whatever element you want. This function can be used to calculate the start and end times of fixed-width “buckets” into which data can be categorized. 44597. 3::FLOAT::NUMBER(3,2); Copy. g. date_trunc('day',transaction_date) + interval '1' month * generate_series(0,11) I've been having trouble finding analogous syntax in Snowflake. 805. 000 +0000). Follow. date_trunc('DAY', '2019-09-23 12:33:25') Output : 2019-09-23 00:00:00. Snowflake date_trunc to remove time from date. Returns the <date> with the specified number <interval> added to the specified <date_part> of that date. Date Part Extracted from Input Date / Timestamp. If a non-integer decimal expression is input, the scale of the result is inherited. Based on the parts extracted, create a new datetime. functions. TRUNCATE TABLE. 切り捨ては抽出とは異なります。例: タイムスタンプを四半期まで切り捨てると、入力タイムスタンプの四半期の最初の日の真夜中に対応するタイムスタンプが返されます。 date_trunc ( week 部分付き) 入力週を切り捨てて月曜日に開始します。 入力週を切り捨てて、定義された週の最初の日に開始します。 last_day ( week 部分付き) 入力週の日曜日を返します。 定義された週の最初の日からの相対的な入力週の最終日を返します。 TRUNC. これを使用して、一部の計算を簡素化できます。. I think that your SQL WHERE clause needs to reflect your clustering/partitioning in order for Snowflake to be able to prune the partitions effectively e. So, by using the “date_trunc ()” function to truncate the timestamp for getting the required output. For more information, see Oracle to Snowflake Migration . Not necessarily. Real World Use Case Scenarios for FLOOR Function in Snowflake. ) Building a Data Application. That is as simple as it can get. TO_TIMESTAMP. Note that truncation is not the same as extraction. Real World Use Case Scenarios for LAG Function in Snowflake. One solution would be: first, move the shift times by 3 hours forward, so 9pm shift starts on Sunday midnight; then truncate to a week, with Sunday being the first day of the week; then move the result back 3 hours, to 21 on Saturday; Here's an example:Despite the name, this returns a TIMESTAMP_NTZ, not a DATE. date_trunc (part: Union [Column, str], expr: Union [Column, str]) → Column [source] ¶ Truncates a DATE, TIME, or TIMESTAMP to the specified precision. The week of the year is 1, as expected. Follow answered Nov 24, 2020 at 1:44. If the value is a non-integer numeric value (for example, FLOAT) the value will be rounded to the nearest integer. to_date('2021|13','yyyy|ww') is not working. and lcurr=fcurr. Contents [ hide] 1 What is DATE_TRUNC () Function ? 2 How can we use DATE_TRUNC () Function ? 2. A note on BigQuery: BigQuery’s DATE_TRUNC function supports the truncation of date types, whereas Snowflake, Redshift, and Databricks’ <date/time field> can be a date or timestamp data type. It should handle up to 9999 hours now. Share. Snowflake bills credits on the accounts for Compute and Storage. functions. Your result set may have different observation_time values: Use a. (Values of type date and time are cast automatically to timestamp or interval, respectively. YEAR. How does one write DATEDIFF(Week,1,[Date]) in form of a Snowflake query? Is it possible? This question was incorrectly asked. (DAY,-3,DATE_TRUNC(WEEK,GETDATE())) However, taking your example literally,. functions. The DATE_TRUNC function truncates a timestamp expression or literal based on the date part that you specify, such as hour, day, or month. The equivalent in Snowflake then would be: DATEADD(DAY,-3,DATE_TRUNC(WEEK,GETDATE())) However, taking your example literally, Snowflake would output minus 3 weeks from the start of "this week" DATEADD(WEEK, -3, DATE_TRUNC(WEEK,GETDATE())) SELECT COUNT(ORDER_DATE) as COUNT_ORDER_DATE, ORDER_DATE FROM ORDERS GROUP BY :datebucket(ORDER_DATE), ORDER_DATE ORDER BY COUNT_ORDER_DATE DESC; So could your query work if it was modified like this: SELECT date, address FROM database. I saw that entry: Snowflake date_trunc to remove time from date I tested on local docker containers. When date_or_time_part is week (or any of its variations), the output is controlled by the session parameter. Alternative for DATE_PART. and my_date_column >= date_trunc(month, current_date); Expand Post. So this is really two parts, to know what year-quarter something is with respect to an offset, you just need to subtract the offset month, from the date you have and then year and quarter the adjusted date. The timestamp data type always contains milliseconds. g. You don't need any conversion functions in SQL when. Yes, that is how you use date_trunc. use DATEADD function to add or minus on data data. snowpark. Summary. Note that this is different from DROP TABLE, which removes the table from the. Note that truncation is not the same as extraction. DATE_TRUNC. The sequence of the 3 params is different from the SQL function, which two overloads: CONVERT_TIMEZONE ( <source_tz> , <target_tz> , <source_timestamp_ntz> ) The first parameter source_tz is optional. HOUR / MINUTE / SECOND¶. start_time) and date_trunc ('second', q. Read the latest on our blog. Snowflake records the policy that is enforced on the table or column. can be solved via. What is the difference between DATE_TRUNC and TO_DATE ? I have two options to convert timestamp into date: DATE_TRUNC ( day,<timestamp >)::date and TO_DATE (. 2 Answers. When negative numbers are rounded up, the value is closer to 0. 1 to 31. we can move the two inner sub-select into one block and inspect it: select distinct v. For example, -0. +1 more. Converts an input expression to a date: For a string expression, the result of converting the string to a date. To Convert to the required format we need to use to_varchar as given in the documentation. date_trunc(field, source [, time_zone ]) source is a value expression of type timestamp, timestamp with time zone, or interval. To control the output format, use the session parameter TIMESTAMP_NTZ_OUTPUT_FORMAT. In parts 1 and 2 of this blog series, we showed you how Snowflake’s unique architecture allows for a virtually unlimited number of compute resources to be accessed near-instantaneously. trunc¶ snowflake. In most use cases, Snowflake correctly handles date and timestamp values formatted as strings. You can find more information about these functions at the following blog. date_trunc('day',transaction_date) + interval '1' month * generate_series(0,11) I've been having trouble finding analogous syntax in Snowflake. 1 What is the Syntax of the DATE_TRUNC function? 2. g. 5 to 0), pass in 'HALF_TO_EVEN' for the rounding_mode argument. 3::FLOAT::NUMBER(3,2); Copy. 3. Returns the absolute value of a numeric expression. DATE_TRUNC. Bharathi. snowpark. 3. 0. where trunc (date_1) = trunc (date_2)Arguments¶ source_expr. Follow answered Oct 14, 2018 at 16:28. Just to be sure, does trunc remove/pop timestamps. date_trunc¶ snowflake. as number_of_jobs from query_history where start_time >= date_trunc (month, current_date) group by 1 order by 2 desc; Copy. Note that truncation is not the. Any valid year (e. 30, July 31, Oct. In the example. 例えば、タイムスタンプを四半期に切り捨てると、元のタイムスタンプの四半期の最初の日の午前0時に対応するタイムスタンプが返されます。. 1 What is the difference between TO_DATE and DATE_TRUNC? I have snowflake column which contains date in yyyy-mm-dd hh:MM:ss format. Round and format result as a string, e. Notez que la troncation n’est pas la même chose que l’extraction. I'm trying to load data by copying CSV files stored in AWS. SUBSTR ('abc', 1, 1) returns ‘a’, not. on date_trunc(‘month’, budat)= dim_date. 300'); You can truncate the milliseconds and leave the same data type, you will still see zeros but not different values:So, for example, if today is Monday 2021-06-28, I only want the results from Monday 2021-06-21 to Sunday 2021-06-27. Snowflake supports date_trunc () for datatypes DATE, TIME, and TIMESTAMP: SELECT DATE_TRUNC (month, CURRENT_DATE ()) AS first_day_of_month; Sounds like you're working with strings. Then adding 6 days gives you the last day. The problem is date_trunc('week', datetime_column) function considers Monday as the week start day and some of my customers user different start day in calendar (like Saturday). How to write the SQL in snowflake for this? You can use TRUNC or DATE_TRUNC functions in SnowSQL. to round -0. How to use DATE_TRUNC() in SQL. We were recently working on a Snowflake data warehousing project. I have a table in which the same employee (PRS_ID) can be included in many rows and I want to take the EARLIEST date (BGN_DATE) for each. Usage Notes¶. functions. Push out all due dates by one week. I would like to split this column into 15 minutes interval in my final output. Any valid year (e. In this blog, we will learn to group by time in Snowflake. 1 What is the Syntax of the DATE_TRUNC function? 2. date_trunc (part: ColumnOrName, expr: ColumnOrName) → Column [source] ¶ Truncates a DATE, TIME, or TIMESTAMP to the specified precision. Therefore, your line should read: WHERE job_date >= DATE_TRUNC ('month', '2019-04. Follow edited Aug 22, 2019 at 5:17. It allows to round datetime objects. ) field selects to which precision to. 5 When you should use IS NULL Function in Snowflake? 6 Real World Use Case Scenarios for IS NULL Function in Snowflake; 7. Truncates the input. Use a CASE expression that returns -1 if the current month is January or 0 for any other month, so that you can get with DATEADD () a date of the previous or the current year to use in DATE_TRUNC (): WHERE DATE BETWEEN DATE_TRUNC ('YEAR', DATEADD (YEAR, CASE WHEN MONTH (CURRENT_DATE ()) = 1 THEN -1 ELSE 0. date_or_time_part must be one of the values listed in Supported Date and Time Parts. 2 Apply IS NULL and IS NOT NULL to the table data. 1-Jul-1901. Answer. In the following example, DATE_TRUNC retrieves the beginning of the current month, adds one month to retrieve the beginning of the next month, and then subtracts 1 day to determine the last day of the current month. It has the following syntax: DATE_TRUNC (date_expression, date_part) Thinking back to our example company, our fictional analyst might use the code below to truncate the date, June 28, 2021, to the beginning of June, June 1, 2021. Variable data types are not explicitly defined but are. the day belongs to. Return. After the conversion, the Snowflake DATE_TRUNC() function is used to truncate the timestamp to the required interval (e. Alternative for DATE_PART. With this you can group every two weeks. start_time) and date_trunc ('second',. Por exemplo: O truncamento de um carimbo de data/hora ao trimestre retorna o carimbo de data/hora correspondente à meia-noite do primeiro dia do trimestre para o carimbo de data/hora de entrada.