Details

    • Default Severity:
      Critical
    • Impact:
      High
    • Likelihood:
      Low
    • Legacy Key:
      PPIncludeTime
    • Covered Languages:
      C, C++, Objective-C
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      4h
    • MISRA C 2004:
      20.12
    • MISRA C 2012:
      21.10

      Description

      Includes time, strftime. This library is associated with clock times. Various aspects are implementation dependent or unspecified, such as the formats of times. If any of the facilities of time.h are used, then the exact implementation for the compiler being used must be determined, and a deviation raised.

      Noncompliant Code Example

      #include <time.h>  /* Noncompliant */
      

      See

      • MISRA C:2004, 20.12 - The time handling functions of library <time.h> shall not be used.
      • MISRA C:2012, 21.10 - The Standard Library time and date functions shall not be used

        Attachments

          Issue Links

          1.
          C-Family RSPEC-4377 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Anonymous
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: