Funções de data e hora

From LibreOffice Help
Jump to: navigation, search

These spreadsheet functions are used for inserting and editing dates and times.

Inserir - Função - Categoria Data e hora

Note.png As funções cujo nome terminem com _ADD ou _EXCEL2003 retornam os mesmos resultados que as funções correspondentes do Microsoft Excel 2003 que não possuem o sufixo. Utilize as funções sem o sufixo para obter os resultados baseados em padrões internacionais.

LibreOffice internally handles a date/time value as a numerical value. If you assign the numbering format "Number" to a date or time value, it is converted to a number. For example, 01/01/2000 12:00 PM, converts to 36526.5. The value preceding the decimal point corresponds to the date; the value following the decimal point corresponds to the time. If you do not want to see this type of numerical date or time representation, change the number format (date or time) accordingly. To do this, select the cell containing the date or time value, call its context menu and select Format Cells. The Numbers tab page contains the functions for defining the number format.

Data base para o dia zero

As datas são calculadas de acordo com os deslocamentos a partir de um dia de início zero. O dia zero pode ser definido como:

Data base Usar
'30/12/1899 (padrão)
'01/01/1900 (usado no StarCalc 1.0 anterior)
'01/01/1904 (usado no software Apple)

Selecione Ferramentas - Opções' - LibreOffice Calc - Calcular' para selecionar uma data de base.

Warning.png Ao copiar e colar células que contém valores de datas em planilhas diferentes, ambos documentos de planilha devem estar definidos com a mesma data base. Se as datas base forem diferentes, os valores de datas exibidos se alterarão!

Anos com dois dígitos

In Tools - Options' - LibreOffice - General' you find the area Year (two digits). This sets the period for which two-digit information applies. Note that changes made here have an effect on some of the following functions.

Note.png When entering dates as part of formulas, slashes or dashes used as date separators are interpreted as arithmetic operators. Therefore, dates entered in this format are not recognized as dates and result in erroneous calculations. To keep dates from being interpreted as parts of formulas use the DATE function, for example, DATE(1954;7;20), or place the date in quotation marks and use the ISO 8601 notation, for example, "1954-07-20". Avoid using locale dependent date formats such as "07/20/54", the calculation may produce errors if the document is loaded under different locale settings.

Funções

FRAÇÃOANO

ANO

<embed href="text/scalc/01/func_workdays.intl.xhp#workdaysintl"/>

DIAÚTIL

NÚM.SEMANA_EXCEL2003

NÚM.SEMANA_OOO

NÚM.SEMANA

DIA.DA.SEMANA

HOJE

VALOR.TEMPO

TEMPO

SEGUNDO

AGORA

<embed href="text/scalc/01/func_networkdays.intl.xhp#networkdaysintl"/>

NETWORKDAYS

MÊS

MINUTO

NUMSEMANAISO

HORA

FIMMÊS

DATAM

DOMINGODEPÁSCOA

DIAS360

DIAS

DIA

DATA.VALOR

DATADIF

DATA


Related Topics

Functions by Category