NÚMERO DEL MES AL NOMBRE DEL MES
itskatherineval
New Altair Community Member
Hola!
Quisiera saber si me podrían ayudar con esta duda:
¿Qué tool me ayuda a convertir el número del mes a nombre del mes?
Resulta que tengo la fecha completa y pude extraer el número del mes, pero no sé como convertirlo solo a mes.
Quisiera saber si me podrían ayudar con esta duda:
¿Qué tool me ayuda a convertir el número del mes a nombre del mes?
Resulta que tengo la fecha completa y pude extraer el número del mes, pero no sé como convertirlo solo a mes.
Tagged:
0
Answers
-
Hola @itskatherineval,
para ello puedes utilizar el operador Map. simplemente creas una tabla con los valores actuales y el nuevo valor, por ejemplo para el mes 1 le asignarias Enero.
espero qu esto te pueda ayudar.
un saludo,
Cesar0 -
Hola @itskatherineval
Puedes usar el operador Date to Nominal y configurar el locale a algún idioma en español.<?xml version="1.0" encoding="UTF-8"?><process version="9.10.010"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.10.010" expanded="true" name="Process"> <parameter key="logverbosity" value="init"/> <parameter key="random_seed" value="-1"/> <parameter key="send_mail" value="never"/> <parameter key="notification_email" value=""/> <parameter key="process_duration_for_mail" value="30"/> <parameter key="encoding" value="UTF-8"/> <process expanded="true"> <operator activated="true" class="utility:create_exampleset" compatibility="9.10.010" expanded="true" height="68" name="Create ExampleSet" width="90" x="179" y="34"> <parameter key="generator_type" value="date series"/> <parameter key="number_of_examples" value="100"/> <parameter key="use_stepsize" value="false"/> <list key="function_descriptions"/> <parameter key="add_id_attribute" value="false"/> <list key="numeric_series_configuration"/> <list key="date_series_configuration"> <parameter key="DATE" value="2022-01-01 00:00:00.2023-01-01 00:00:00"/> </list> <list key="date_series_configuration (interval)"/> <parameter key="date_format" value="yyyy-MM-dd HH:mm:ss"/> <parameter key="time_zone" value="SYSTEM"/> <parameter key="column_separator" value=","/> <parameter key="parse_all_as_nominal" value="false"/> <parameter key="decimal_point_character" value="."/> <parameter key="trim_attribute_names" value="true"/> </operator> <operator activated="true" class="generate_copy" compatibility="9.10.010" expanded="true" height="82" name="Generate Copy" width="90" x="313" y="34"> <parameter key="attribute_name" value="DATE"/> <parameter key="new_name" value="Mes"/> </operator> <operator activated="true" class="date_to_nominal" compatibility="9.10.010" expanded="true" height="82" name="Date to Nominal" width="90" x="447" y="34"> <parameter key="attribute_name" value="Mes"/> <parameter key="date_format" value="MMMM"/> <parameter key="time_zone" value="SYSTEM"/> <parameter key="locale" value="Spanish (Mexico)"/> <parameter key="keep_old_attribute" value="false"/> </operator> <connect from_op="Create ExampleSet" from_port="output" to_op="Generate Copy" to_port="example set input"/> <connect from_op="Generate Copy" from_port="example set output" to_op="Date to Nominal" to_port="example set input"/> <connect from_op="Date to Nominal" from_port="example set output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator> </process>
0