Files
workbook/tests/fixtures/datetime_functions.gnumeric
waozi a231bc3fe5 Complete complex pow parity and sub-second datetime rendering
Complex powers now flow through goffice's go_complex_powx algorithm:
kryon's kry_quad gains the quad-precision machinery it needs — natural
log with scaling and a Newton step, hypot with over/underflow
protection, Carlson's AGM arcsin/arccos/arctan, atan2/atan2pi with
axis and diagonal special cases, reduce-half sinpi/cospi with Newton
refinement, mulmod1 modulo-one argument reduction, and the
correctly-rounded pi/2pi/pihalf/ln2/sqrt2 double-double constants.
IMIGAMMA (and every other complex-power consumer) is now bit-exact
for arbitrary complex arguments; the special_functions fixture gains
the five previously excluded rows.

Datetime cells with a fractional-second component now render
milliseconds like gnumeric (rounded, omitted when zero or carried
into the seconds), so UNIX2DATE handles sub-second timestamps
exactly; the datetime_functions fixture gains those rows too. All 27
fixtures remain 1:1 with ssconvert including round-trips, with the
456-function manifest fully dispatched.
2026-09-05 11:32:26 -03:00

20 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<gnm:Workbook xmlns:gnm="http://www.gnumeric.org/v10.dtd">
<gnm:SheetNameIndex><gnm:SheetName gnm:Cols="6" gnm:Rows="16">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
<gnm:Sheets><gnm:Sheet><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>5</gnm:MaxCol><gnm:MaxRow>15</gnm:MaxRow><gnm:Cells>
<gnm:Cell Row="0" Col="4">=UNIX2DATE(86400)</gnm:Cell>
<gnm:Cell Row="1" Col="4">=UNIX2DATE(0)</gnm:Cell>
<gnm:Cell Row="2" Col="4">=UNIX2DATE(1e9)</gnm:Cell>
<gnm:Cell Row="3" Col="4">=UNIX2DATE(1234567890)</gnm:Cell>
<gnm:Cell Row="5" Col="4">=TIMEVALUE("12:30:00")</gnm:Cell>
<gnm:Cell Row="6" Col="4">=TIMEVALUE("00:00")</gnm:Cell>
<gnm:Cell Row="7" Col="4">=TIMEVALUE("23:59:59")</gnm:Cell>
<gnm:Cell Row="8" Col="4">=TIMEVALUE(2.75)</gnm:Cell>
<gnm:Cell Row="9" Col="4">=ODF.TIME(12,30,2)</gnm:Cell>
<gnm:Cell Row="10" Col="4">=ODF.TIME(0,0,0)</gnm:Cell>
<gnm:Cell Row="11" Col="4">=ODF.TIME(23,0,30)</gnm:Cell>
<gnm:Cell Row="12" Col="4">=UNIX2DATE(1e11)</gnm:Cell>
<gnm:Cell Row="12" Col="4">=UNIX2DATE(86400.5)</gnm:Cell><gnm:Cell Row="13" Col="4">=UNIX2DATE(1e9+0.7)</gnm:Cell><gnm:Cell Row="14" Col="4">=UNIX2DATE(86400.123456)</gnm:Cell><gnm:Cell Row="15" Col="4">=UNIX2DATE(86400.9999)</gnm:Cell></gnm:Cells></gnm:Sheet></gnm:Sheets>
</gnm:Workbook>