title: Using strftime function in mawk
body: <p>I'm trying to create AWK script that will filter the input file according to some pattern, and use the strftime() function for some calculations.</p>
  
  <pre><code>($2 ~ /^[HB]/ &amp;&amp; $2 ~ /n$/){
          print strftime("%Y")
  }
  </code></pre>
  
  <p>The interpreter in use is mawk. 
  When triggering this script using this command:</p>
  
  <pre><code>awk -f script3 inputFile
  </code></pre>
  
  <p>I'm getting the error: "function strftime never defined" </p>