44.204.218.79 |    

Navigation

Google Advertisement

All snippets of the tag date

1-7 of 7 Entries

is_workingtime
(Bash::Function)
Created by Marko Schulz at 2023-02-23 21:17:28
# ******************************************************* # This function checks if we are currently in working hours. # The weekend and from 18:00 to 06:00 is not working time. # # @return bool # function is_workingtime () { # Get the day of week...

last day of last month
(Bash::Snippets)
Created by Marko Schulz at 2016-02-24 10:19:16
# Last day of last month date -d "1 day ago $(date +%b) 1" +%d.%m.%Y # Last Sunday date -d "last Sunday" +%d.%m.%Y # Tomorrow date -d "tomorrow" +%d.%m.%Y date -d "next day" +%d.%m.%Y # 5 days ago date -d "5 days ago" +%d.%m.%Y # Yesterday...

rfc2822Toiso8601
(PHP::Function)
Created by Marko Schulz at 2012-08-30 14:35:15
/** * This function convert a rfc2822 date format (e.g. Thu, 30 Aug 2012 14:28:25 +0200) * into a iso8601 date format (e.g. 2012-08-30T14:28:25+02:00). * * @param string $date - The date sting * @return string */ function rfc2822Toiso8601($dat...

date
(Perl::Function)
Created by Marko Schulz at 2010-01-20 13:51:05
sub date { my @days = ('Sonntag','Montag','Dienstag','Mittwoch', 'Donnerstag','Freitag','Samstag'); my $time = time() ; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time+($tzone*3600)) ; $mon = $mon+1 ; ...

date2time
(Perl::Snippets)
Created by Marko Schulz at 2010-01-20 13:44:25
#!/usr/bin/perl # required perl package... use POSIX qw(strftime); print date2time( '2007-08-17 10:45:22' ); # ************************************************************ # convert date string ot unix time (2005-06-16 10:00:00 => 1118916000)...

date
(Perl::Snippets)
Created by Marko Schulz at 2010-01-20 13:44:00
#!/usr/bin/perl # Example: 2009-09-23 17:01:25 print date( "%Y-%m-%d %H:%M:%S" ); # ************************************************************ # Return the current time in the given FORMAT. # # FORMAT controls the output. # # %a => Sun ...

date
(Python::Function)
Created by Marko Schulz at 2008-12-27 02:50:22
def date( format ): """date --- Get the current date by strftime format. (string) string date( (string) format )""" from time import strftime return strftime(format)

1-7 of 7 Entries
Search
 
Full text search by name and content of a snippet.

User online
There are 5 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)