Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 161-170 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
163Bash ScriptDatum, ZeitAktuelles Datum/Uhrzeit#!/bin/sh myDate=$(date +"%Y-%m-%d") echo $myDate # 2014-01-14 echo $(date +"%Y-%m-%d_%a") # with short dayname # 2017-01-05_Do (Do => German, localized short of Tuesday) echo $(date +"%Y-%m-%d %H:%M:%S") # 2014-01-14 22:15 # List of formatting options: https://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/View Update Delete
164PythonVariablenAuflistung aller Variablenimport pprint a="This is a test" b=1 c=True pprint.pprint(locals()) #{'__builtins__': <module '__builtin__' (built-in)>, # '__doc__': None, # '__name__': '__main__', # '__package__': None, # 'a': 'This is a test', # 'b': 1, # 'c': True, # 'pprint': <module 'pprint' from '/usr/lib/python2.7/pprint.pyc'>} pprint.pprint(globals())View Update Delete
165MumpsVariablenAuflistung aller VariablenS A="This is a test" Set b=1 ZW ZWriteView Update Delete
166PythonFilehandlingDatei auf dem Betriebssystem ausführenimport commands output=commands.getoutput("dir") print output # home tmp myFile.shView Update Delete
167Bash ScriptProzeduren, Funktionen, MethodenDeklaration einer Funktion/Prozedur#!/bin/sh do_something() { echo $1 echo $2 } do_something "this is my first" " and second argument" # this is my first and second argumentView Update Delete
168SQLiteDatum, ZeitErster und letzter Tag des Monats ermittelnselect date('now','start of month'); --first day of current month select date('now','start of month', '+1 months','-1 day'); --last day of current monthView Update Delete
169SQLiteDatum, ZeitAktuelles Datum/Uhrzeitselect date('now'); select time('now'); select datetime('now');View Update Delete
170PythonDatum, ZeitGestriges Datumfrom datetime import date, timedelta d=date.today()-timedelta(days=1) output=d.isoformat() # 2014-02-27 View Update Delete
171SQLiteDatum, ZeitGestriges Datumselect date('now','-1 day');View Update Delete
172SQLiteDatum, ZeitZeitdifferenz-- http://www.sqlite.org/cvstrac/wiki?p=DateAndTimeFunctions SELECT (strftime('%s','now') - strftime('%s',date('now','-1 day'))) AS Seconds -- https://stackoverflow.com/questions/289680/difference-between-2-dates-in-sqlite SELECT CAST(JulianDay('now') - JulianDay(MAX(datetime_field_in_table)) * 24 * 60 AS Integer) AS diff_minutes FROM example_tableView Update Delete