The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to convert MESZ time into UTC?
Hi,
i have data in the MESZ time format and want to transform it to UTC timestamp.
the csv reader can read the data:
but then i don't know how to transform the data to UTC format and write it in a csv file.
My goal for the outpout would be for the first line/column: "15.05.2022 16:00:00" with no timezone at the end. the process has to take into account that in the winter the difference between MEZ and UTC is 1h and in the summer UTC is 2h behind.
so how do i do this?
Have a good one
so how do i do this?
Have a good one
PS i attached the files by accident twice. Same files just didn't know how to delete one..
sion="1.0" encoding="UTF-8"?><process version="9.10.008"><br> <context><br> <input/><br> <output/><br> <macros/><br> </context><br> <operator activated="true" class="process" compatibility="9.10.008" expanded="true" name="Process"><br> <parameter key="logverbosity" value="init"/><br> <parameter key="random_seed" value="2001"/><br> <parameter key="send_mail" value="never"/><br> <parameter key="notification_email" value=""/><br> <parameter key="process_duration_for_mail" value="30"/><br> <parameter key="encoding" value="SYSTEM"/><br> <process expanded="true"><br> <operator activated="true" class="read_csv" compatibility="9.10.008" expanded="true" height="68" name="Read CSV" width="90" x="45" y="34"><br> <parameter key="csv_file" value="D:\Benutzer\Frank\Downloads\Funding Rate History_BTCUSDT Perpetual_2022-05-15 - Kopie.csv"/><br> <parameter key="column_separators" value=","/><br> <parameter key="trim_lines" value="false"/><br> <parameter key="use_quotes" value="true"/><br> <parameter key="quotes_character" value="""/><br> <parameter key="escape_character" value="\"/><br> <parameter key="skip_comments" value="true"/><br> <parameter key="comment_characters" value="#"/><br> <parameter key="starting_row" value="1"/><br> <parameter key="parse_numbers" value="true"/><br> <parameter key="decimal_character" value="."/><br> <parameter key="grouped_digits" value="false"/><br> <parameter key="grouping_character" value=","/><br> <parameter key="infinity_representation" value=""/><br> <parameter key="date_format" value="yyyy-MM-dd HH:mm:ss"/><br> <parameter key="first_row_as_names" value="false"/><br> <list key="annotations"/><br> <parameter key="time_zone" value="SYSTEM"/><br> <parameter key="locale" value="Englisch (Vereinigte Staaten von Amerika)"/><br> <parameter key="encoding" value="windows-1252"/><br> <parameter key="read_all_values_as_polynominal" value="false"/><br> <list key="data_set_meta_data_information"><br> <parameter key="0" value="time.true.date_time.attribute"/><br> <parameter key="1" value="contract.false.polynominal.attribute"/><br> <parameter key="2" value="att3.false.polynominal.attribute"/><br> <parameter key="3" value="att4.true.polynominal.attribute"/><br> </list><br> <parameter key="read_not_matching_values_as_missings" value="false"/><br> </operator><br> <operator activated="true" class="nominal_to_date" compatibility="9.10.008" expanded="true" height="82" name="Nominal to Date" width="90" x="179" y="34"><br> <parameter key="attribute_name" value="time"/><br> <parameter key="date_type" value="date_time"/><br> <parameter key="date_format" value="dd.MM.yyyy HH:mm:ss z"/><br> <parameter key="time_zone" value="UTC"/><br> <parameter key="locale" value="Deutsch (Deutschland)"/><br> <parameter key="keep_old_attribute" value="false"/><br> </operator><br> <operator activated="true" class="write_csv" compatibility="9.10.008" expanded="true" height="82" name="Write CSV" width="90" x="313" y="34"><br> <parameter key="column_separator" value=";"/><br> <parameter key="write_attribute_names" value="true"/><br> <parameter key="quote_nominal_values" value="true"/><br> <parameter key="format_date_attributes" value="true"/><br> <parameter key="date_format" value="yyyy-MM-dd HH:mm:ss"/><br> <parameter key="append_to_file" value="false"/><br> <parameter key="encoding" value="SYSTEM"/><br> </operator><br> <connect from_op="Read CSV" from_port="output" to_op="Nominal to Date" to_port="example set input"/><br> <connect from_op="Nominal to Date" from_port="example set output" to_op="Write CSV" to_port="input"/><br> <connect from_op="Write CSV" from_port="through" to_port="result 1"/><br> <portSpacing port="source_input 1" spacing="0"/><br> <portSpacing port="sink_result 1" spacing="0"/><br> <portSpacing port="sink_result 2" spacing="0"/><br> </process><br> </operator><br></process><br>
1
Best Answer
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data ScientistHi,little aftermath about locale:you can use patterns which include for example a day of the week, For example:EEE, dd.MM.yyyywith an English locale you get:
Fri, 27.05.2022 With a German locale you get:Fr, 27.05.2022 And with a French locale you get:ven., 27.05.2022 If you don't use a pattern which differs in the locale it makes no difference what you set (i.e for dd.MM.yyyy)Best,Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany1
Answers
But some fields are barely explained in the help so what is:
Dortmund, Germany
https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
(no virus promis)