Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl sprintf YYYYMMDD sample

my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
my $now = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
Comment

PREVIOUS NEXT
Code Example
Perl :: perl hash ref create 
Perl :: perl make a new directory 
Perl :: perl 
Perl :: perl leading zeros formatting sprintf 
Perl :: what happened to perl 6 
Pascal :: pascal press any key to continue 
Pascal :: pascal try catch finally 
Pascal :: pascal cheat sheet pdf 
Powershell :: powershell display firewall rules name 
Powershell :: download jira attachments powershell 
Gdscript :: godot find_node() 
Clojure :: clojure 
Lisp :: lisp input 
Assembly :: docker cannot stop container 
Assembly :: discord bot remove message 
Assembly :: assembly language display message 
Assembly :: flutter button border radius 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: list all node processes 
Javascript :: javascript radian to degree 
Javascript :: check react version terminal windows 
Javascript :: jquery only number allowed to 10 digit 
Javascript :: count number of checkboxes in html jquery 
Javascript :: javascript lowercase string 
Javascript :: regex date validation mm/dd/yyyy 
Javascript :: how to console.log formData 
Javascript :: js scroll to id 
Javascript :: sleep for 1 second 
Javascript :: jquery css add important 
Javascript :: dconf-editor install terminal 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =