Compare commits

...

5 Commits

Author SHA1 Message Date
51e370ad33 Quelle angepasst 2023-02-01 15:19:34 +01:00
f1fabad17d Java Doc 2023-02-01 15:19:12 +01:00
deeabfd2ad Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/Order.java
2023-02-01 12:42:34 +01:00
6ffc7a6868 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	out/production/VPR_SCRIPT/Data.class
#	out/production/VPR_SCRIPT/Execute.class
2023-02-01 12:42:23 +01:00
95069e7d8d to String Oder Class in Kommantar 2023-01-16 16:05:15 +01:00
6 changed files with 3 additions and 3 deletions

2
.idea/misc.xml generated
View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

Binary file not shown.

View File

@ -19,7 +19,7 @@ public class GeneralMethods {
* @author Madeleine Vigier * @author Madeleine Vigier
*/ */
public static String getDayNumberNew(String dateString) { public static String getDayNumberNew(String dateString) {
//https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html //https://stackoverflow.com/questions/8746084/string-to-localdate
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy");
formatter = formatter.withLocale(Locale.GERMANY); // Locale specifies human language for translating, and cultural norms for lowercase/uppercase and abbreviations and such. Example: Locale.US or Locale.CANADA_FRENCH formatter = formatter.withLocale(Locale.GERMANY); // Locale specifies human language for translating, and cultural norms for lowercase/uppercase and abbreviations and such. Example: Locale.US or Locale.CANADA_FRENCH
LocalDate date = LocalDate.parse(dateString, formatter); LocalDate date = LocalDate.parse(dateString, formatter);
@ -32,7 +32,7 @@ public class GeneralMethods {
* The method getDayName() gets the weekday * The method getDayName() gets the weekday
* *
* @param dayNumber dayNumber e.g. 1 for Monday * @param dayNumber dayNumber e.g. 1 for Monday
* @return weekday * @return String weekday
* @author Madeleine Vigier * @author Madeleine Vigier
*/ */
public static String getDayName(int dayNumber) { public static String getDayName(int dayNumber) {