mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
replace SimpleDateFormat to DatetimeFormatter
This commit is contained in:
parent
2c2d30f5d6
commit
38b336fb58
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/target/
|
||||
/target/
|
||||
/MeteoInfoLab/target/
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: org.python:jython-standalone:2.7.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -25,7 +25,7 @@
|
||||
<orderEntry type="library" name="Maven: org.scilab.forge:jlatexmath:1.0.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.scilab.forge:jlatexmath-font-greek:1.0.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.scilab.forge:jlatexmath-font-cyrillic:1.0.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.python:jython-standalone:2.7.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.python:jython-standalone:2.7.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.freehep:freehep-graphicsio-emf:2.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.freehep:freehep-graphicsio-pdf:2.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-imaging:1.0-alpha1" level="project" />
|
||||
|
||||
@ -19,6 +19,11 @@
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<name>Maven Central</name>
|
||||
<url>http://repo1.maven.org/maven2/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>unidata-all</id>
|
||||
<name>Unidata All</name>
|
||||
@ -34,11 +39,6 @@
|
||||
<name>boundlessgeo</name>
|
||||
<url>http://repo.boundlessgeo.com/main/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<name>Maven Central</name>
|
||||
<url>http://repo1.maven.org/maven2/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>ebi</id>
|
||||
<name>ebiRepo</name>
|
||||
|
||||
@ -27,13 +27,10 @@ import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.MappedByteBuffer;
|
||||
import java.nio.channels.FileChannel;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -729,8 +726,8 @@ public final class AttributeTable implements Cloneable {
|
||||
break;
|
||||
case 'D':
|
||||
//Date
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
|
||||
String ds = format.format(columnValue);
|
||||
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
String ds = format.format((LocalDateTime) columnValue);
|
||||
_writer.write(ds.getBytes(), 0, ds.length());
|
||||
break;
|
||||
case 'N':
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1218,6 +1218,7 @@ org\meteoinfo\ndarray\ArrayBoolean$D1.class
|
||||
org\meteoinfo\legend\LayersLegend$23.class
|
||||
org\meteoinfo\legend\FrmLegendSet$4.class
|
||||
org\meteoinfo\chart\plot\Plot3D.class
|
||||
org\meteoinfo\chart\jogl\ParticleGraphics.class
|
||||
org\meteoinfo\image\filter\CompoundFilter.class
|
||||
org\meteoinfo\ndarray\Index2D.class
|
||||
org\meteoinfo\chart\jogl\JOGLUtil.class
|
||||
@ -1240,6 +1241,7 @@ org\meteoinfo\table\ColumnData.class
|
||||
org\meteoinfo\image\filter\Gradient.class
|
||||
org\meteoinfo\data\mapdata\webmap\GeoPosition.class
|
||||
org\meteoinfo\plugin\IPlugin.class
|
||||
org\meteoinfo\chart\jogl\ParticleGraphics$Particle.class
|
||||
org\meteoinfo\data\dataframe\impl\Views$FillNaFunction.class
|
||||
org\meteoinfo\ndarray\ArrayInt$D6.class
|
||||
org\meteoinfo\data\meteodata\MeteoDataInfo.class
|
||||
@ -1398,6 +1400,7 @@ org\meteoinfo\legend\ArrowBreak.class
|
||||
org\meteoinfo\data\GridData$Double.class
|
||||
org\meteoinfo\chart\ChartPanel$1.class
|
||||
org\meteoinfo\image\filter\OpacityFilter.class
|
||||
org\meteoinfo\chart\jogl\ParticleGraphics$1.class
|
||||
org\meteoinfo\image\composite\DarkenComposite.class
|
||||
org\meteoinfo\projection\ProjectionUtil$1.class
|
||||
org\meteoinfo\layer\FrmLayerProperty$18.class
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<MeteoInfo File="config.xml" Type="configurefile">
|
||||
<Path OpenPath="D:\Temp\Map"/>
|
||||
<Path OpenPath="D:\Temp\traj\Sample"/>
|
||||
<Font>
|
||||
<TextFont FontName="宋体" FontSize="15"/>
|
||||
<LegendFont FontName="宋体" FontSize="12"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user