1. Table of Contents
  2. About
  3. 1. Algorithms
    1. 1.1. Generate Random Values
    2. 1.2. Sort a Vector
  4. 2. Command Line
    1. 2.1. Argument Parsing
    2. 2.2. ANSI Terminal
  5. 3. Compression
    1. 3.1. Working with Tarballs
  6. 4. Concurrency
    1. 4.1. Explicit Threads
    2. 4.2. Data Parallelism
  7. 5. Cryptography
    1. 5.1. Hashing
    2. 5.2. Encryption
  8. 6. Data Structures
    1. 6.1. Bitfield
  9. 7. Database
    1. 7.1. SQLite
    2. 7.2. Postgres
  10. 8. Date and Time
    1. 8.1. Duration and Calculation
    2. 8.2. Parsing and Displaying
  11. 9. Development Tools
    1. 9.1. Debugging
      1. 9.1.1. Log Messages
      2. 9.1.2. Configure Logging
    2. 9.2. Versioning
    3. 9.3. Build Time Tooling
  12. 10. Encoding
    1. 10.1. Character Sets
    2. 10.2. CSV processing
    3. 10.3. Structured Data
  13. 11. Error Handling
    1. 11.1. Handle Error Variants
  14. 12. File System
    1. 12.1. Read & Write
    2. 12.2. Directory Traversal
  15. 13. Hardware Support
    1. 13.1. Processor
  16. 14. Memory Management
    1. 14.1. Global Static
  17. 15. Network
    1. 15.1. Server
  18. 16. Operating System
    1. 16.1. External Command
  19. 17. Science
    1. 17.1. Mathematics
      1. 17.1.1. Linear Algebra
      2. 17.1.2. Trigonometry
      3. 17.1.3. Complex Numbers
      4. 17.1.4. Statistics
      5. 17.1.5. Miscellaneous
  20. 18. Text Processing
    1. 18.1. Regular Expressions
    2. 18.2. String Parsing
  21. 19. Web Programming
    1. 19.1. Extracting Links
    2. 19.2. URL
    3. 19.3. Media Types
    4. 19.4. Clients
      1. 19.4.1. Making Requests
      2. 19.4.2. Calling a Web API
      3. 19.4.3. Downloads
      4. 19.4.4. Web Authentication

Rust Cookbook

Date and Time

RecipeCratesCategories
Measure elapsed timestd-badgecat-time-badge
Perform checked date and time calculationschrono-badgecat-date-and-time-badge
Convert a local time to another timezonechrono-badgecat-date-and-time-badge
Examine the date and timechrono-badgecat-date-and-time-badge
Convert date to UNIX timestamp and vice versachrono-badgecat-date-and-time-badge
Display formatted date and timechrono-badgecat-date-and-time-badge
Parse string into DateTime structchrono-badgecat-date-and-time-badge