Advertisement
Rockettek

Untitled

Aug 12th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. These are the allowed parameters for formatting on timeapi.org
  2.  
  3. In the url, the '%' character is substituted as % and the space is %20
  4.  
  5. %a - The abbreviated weekday name (“Sun”)
  6. %A - The full weekday name (“Sunday”)
  7. %b - The abbreviated month name (“Jan”)
  8. %B - The full month name (“January”)
  9. %c - The preferred local date and time representation
  10. %d - Day of the month (01..31)
  11. %H - Hour of the day, 24-hour clock (00..23)
  12. %I - Hour of the day, 12-hour clock (01..12)
  13. %j - Day of the year (001..366)
  14. %m - Month of the year (01..12)
  15. %M - Minute of the hour (00..59)
  16. %p - Meridian indicator (“AM” or “PM”)
  17. %S - Second of the minute (00..60)
  18. %U - Week number of the current year,
  19. starting with the first Sunday as the first day
  20. of the first week (00..53)
  21. %W - Week number of the current year,
  22. starting with the first Monday as the first day
  23. of the first week (00..53)
  24. %w - Day of the week (Sunday is 0, 0..6)
  25. %x - Preferred representation for the date alone, no time
  26. %X - Preferred representation for the time alone, no date
  27. %y - Year without a century (00..99)
  28. %Y - Year with century
  29. %Z - Time zone name
  30. %% - Literal “%” character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement