Simulation von Bürgern
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Time.pde 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import java.util.Date;
  2. import java.text.SimpleDateFormat;
  3. //Date date = new Date();
  4. //SimpleDateFormat ft;
  5. //Calendar c = Calendar.getInstance();
  6. /*
  7. Simple DateFormat Format Codes
  8. G Era designator AD
  9. y Year in four digits 2001
  10. M Month in year July or 07
  11. d Day in month 10
  12. h Hour in A.M./P.M. (1~12) 12
  13. H Hour in day (0~23) 22
  14. m Minute in hour 30
  15. s Second in minute 55
  16. S Millisecond 234
  17. E Day in week Tuesday
  18. D Day in year 360
  19. F Day of week in month 2 (second Wed. in July)
  20. w Week in year 40
  21. W Week in month 1
  22. a A.M./P.M. marker PM
  23. k Hour in day (1~24) 24
  24. K Hour in A.M./P.M. (0~11) 10
  25. z Time zone Eastern Standard Time
  26. ' Escape for text Delimiter
  27. " Single quote
  28. Date and Time Conversion Characters
  29. Character Description Example
  30. c Complete date and time Mon May 04 09:51:52 CDT 2009
  31. F ISO 8601 date 2004-02-09
  32. D U.S. formatted date (month/day/year) 02/09/2004
  33. T 24-hour time 18:05:19
  34. r 12-hour time 06:05:19 pm
  35. R 24-hour time, no seconds 18:05
  36. Y Four-digit year (with leading zeroes) 2004
  37. y Last two digits of the year (with leading zeroes) 04
  38. C First two digits of the year (with leading zeroes) 20
  39. B Full month name February
  40. b Abbreviated month name Feb
  41. m Two-digit month (with leading zeroes) 02
  42. d Two-digit day (with leading zeroes) 03
  43. e Two-digit day (without leading zeroes) 9
  44. A Full weekday name Monday
  45. a Abbreviated weekday name Mon
  46. j Three-digit day of year (with leading zeroes) 069
  47. H Two-digit hour (with leading zeroes), between 00 and 23 18
  48. k Two-digit hour (without leading zeroes), between 0 and 23 18
  49. I Two-digit hour (with leading zeroes), between 01 and 12 06
  50. l Two-digit hour (without leading zeroes), between 1 and 12 6
  51. M Two-digit minutes (with leading zeroes) 05
  52. S Two-digit seconds (with leading zeroes) 19
  53. L Three-digit milliseconds (with leading zeroes) 047
  54. N Nine-digit nanoseconds (with leading zeroes) 047000000
  55. P Uppercase morning or afternoon marker PM
  56. p Lowercase morning or afternoon marker pm
  57. z RFC 822 numeric offset from GMT -0800
  58. Z Time zone PST
  59. s Seconds since 1970-01-01 00:00:00 GMT 1078884319
  60. Q Milliseconds since 1970-01-01 00:00:00 GMT 1078884319047
  61. */