ATOMIC AI DATE AND TIME SPEC RULE: This document defines the complete and binding date and time system of the Atomic language. RULE: Only the functions listed in this document exist. RULE: No additional date or time functions exist. RULE: All rules defined here are mandatory. GENERAL RULES RULE: Date and time operations are performed exclusively through functions. RULE: All functions listed in this document return a value. RULE: Returned values must be stored in a variable. RULE: Date and time functions cannot be used inside arguments of other functions. RULE: Date values are opaque and may only be manipulated through the listed functions. CURRENT DATE AND TIME nome_variabile = ottieni data attuale RULE: This function returns the current date and time. nome_variabile = ottieni data attuale come testo RULE: This function returns the current date and time as text. nome_variabile = ottieni giorno attuale RULE: This function returns the current day. nome_variabile = ottieni mese attuale RULE: This function returns the current month. nome_variabile = ottieni nome del mese attuale RULE: This function returns the current month name as text. nome_variabile = ottieni anno attuale RULE: This function returns the current year. DATE CREATION nome_variabile = ottieni una data --> (GIORNO:) (MESE:) (ANNO:) (ORA:) (MINUTO:) (SECONDO:) RULE: This function creates a date value from the specified components. DATE COMPARISON AND CHECKS nome_variabile = ottieni risultato controllo se la data è oggi --> (DATA:) RULE: This function returns a numeric boolean value. nome_variabile = ottieni elemento da questa data --> (ELEMENTO:) (DATA:) RULE: ELEMENTO is a text value specifying which part of the date is retrieved. RULE: This function returns the requested date element. nome_variabile = ottieni risultato confronto date --> (DATA 1:) (DATA 2:) RULE: This function returns the result of comparing the two dates. DATE DIFFERENCE nome_variabile = ottieni differenza tra due date --> (DATA 1:) (DATA 2:) (UNITA:) RULE: This function returns the difference between two dates. RULE: UNITA specifies the unit of measurement for the difference. DATE AND TIME FUNCTIONS nome_variabile = ottieni data attuale nome_variabile = ottieni data attuale come testo nome_variabile = ottieni giorno attuale nome_variabile = ottieni mese attuale nome_variabile = ottieni mese attuale nome_variabile = ottieni nome del mese attuale nome_variabile = ottieni anno attuale nome_variabile = ottieni una data --> (GIORNO: ) (MESE: ) (ANNO: ) (ORA: ) (MINUTO: ) (SECONDO: ) nome_variabile = ottieni risultato controllo se la data è oggi --> (DATA: ) nome_variabile = ottieni elemento da questa data --> (ELEMENTO: "nome del giorno") (DATA: ) nome_variabile = ottieni risultato confronto date --> (DATA 1: ) (DATA 2: ) nome_variabile = ottieni differenza tra due date --> (DATA 1: ) (DATA 2: ) (UNITA: ) FORMAL CLOSURE RULE: The date and time system of Atomic is limited to the functions listed in this document. RULE: Any date or time function not listed here: does not exist must not be inferred must not be generated