<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=CreateDates_4.5.1</id>
	<title>CreateDates 4.5.1 - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=CreateDates_4.5.1"/>
	<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=CreateDates_4.5.1&amp;action=history"/>
	<updated>2026-04-05T21:54:05Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://patrius.cnes.fr/index.php?title=CreateDates_4.5.1&amp;diff=2663&amp;oldid=prev</id>
		<title>Admin : Page créée avec « &lt;syntaxhighlight lang=&quot;java&quot;&gt; public class CreateDates {          public static void main(String[] args) throws PatriusException {                  // Patrius Dataset init... »</title>
		<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=CreateDates_4.5.1&amp;diff=2663&amp;oldid=prev"/>
		<updated>2020-08-17T08:41:50Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt; public class CreateDates {          public static void main(String[] args) throws PatriusException {                  // Patrius Dataset init... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class CreateDates {&lt;br /&gt;
    &lt;br /&gt;
    public static void main(String[] args) throws PatriusException {&lt;br /&gt;
        &lt;br /&gt;
        // Patrius Dataset initialization (needed for example to get the UTC time)&lt;br /&gt;
        PatriusDataset.addResourcesFromPatriusDataset() ;&lt;br /&gt;
&lt;br /&gt;
        // Recovery of the UTC time scale using a &amp;quot;factory&amp;quot; (not to duplicate such unique object)&lt;br /&gt;
        final TimeScale TUC = TimeScalesFactory.getUTC();&lt;br /&gt;
        &lt;br /&gt;
        // Date of the orbit (given in UTC time scale)&lt;br /&gt;
        final AbsoluteDate date = new AbsoluteDate(&amp;quot;2010-01-01T12:00:00.000&amp;quot;, TUC);&lt;br /&gt;
        &lt;br /&gt;
        // Other way to initialize the absolute date&lt;br /&gt;
        final AbsoluteDate dateBis = new AbsoluteDate(2010, 1, 1, 12, 0, 0., TUC);&lt;br /&gt;
        System.out.println(&amp;quot;Comparizon between both dates = &amp;quot;+dateBis.compareTo(date) +&amp;quot; s&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        // Printing date in TUC and TAI scale (by default)&lt;br /&gt;
        System.out.println();&lt;br /&gt;
        System.out.println(date.toString(TUC));&lt;br /&gt;
        System.out.println(date.toString());&lt;br /&gt;
        &lt;br /&gt;
        // Creation of another date by shifting a previous one&lt;br /&gt;
        final AbsoluteDate otherDate = date.shiftedBy(100.);&lt;br /&gt;
        System.out.println();&lt;br /&gt;
        System.out.println(otherDate.toString(TUC));&lt;br /&gt;
        &lt;br /&gt;
        // Gap between two dates&lt;br /&gt;
        otherDate.durationFrom(date);&lt;br /&gt;
        System.out.println();&lt;br /&gt;
        System.out.println(&amp;quot;Gap between both dates = &amp;quot;+otherDate.durationFrom(date)+&amp;quot; s&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>