unix   103373

« earlier    

python - From stat().st_mtime to datetime? - Stack Overflow | https://stackoverflow.com/
Try datetime.fromtimestamp(statResult.st_mtime)

<code class="language-python">import datetime

mod_timestamp = datetime.datetime.fromtimestamp(path.getmtime(<YOUR_PATH_HERE>))</code>
stat  unix  filesystem  timeanddate  solution 
14 hours ago by kme
How to set environment variables that crontab will use - Stack Overflow
I have a crontab running every hour. The user running it has environment variabless in the .bash_profile that work when the user runs the job from the terminal, however, obviously these don't get picked up by crontab when it runs.
asuswrt-merlin  flexget  unix  cron 
21 hours ago by victoraraujo01
Chris's Wiki :: blog/unix/TheLegendOfSync

The sync folklore dates from the very old days when Unix was primitive and two things were true. First, the sync() system call that the sync program uses just queued dirty buffers to be flushed and didn't guarantee that they had been writing to disk. Second, the kernel itself didn't force all buffers to be written to disk as part of the shutdown or reboot process.
unix  history  filesystem 
yesterday by jefframnani
Things UNIX can do atomically — Crowley Code!
"This is a catalog of things UNIX-like/POSIX-compliant operating systems can do atomically, making them useful as building blocks for thread-safe and multi-process-safe programs without mutexes or read/write locks."

By Richard Crowley.
unix  programming 
2 days ago by larryv
id3 mass tagger is a tool for manipulating id3 and id3v2 tags in multiple files. It can generate tag fields from the filename and other variables, and/or rename files, using an intuitive syntax. id3 currently supports old-style ID3v1 tags, Lyrics3v2, as well as the more complex ID3v2 format. This means its use is limited to audio files which use these formats, i.e. MP3.
Music  Software  UNIX  Coding 
3 days ago by telharmonium

« earlier    

related tags

***  2018  @comparison  @concept  @graph  @wikipedia  administration  aix  apple  applications  asuswrt-merlin  augeas-lenses  augeas-tools  automation  awk  bash  bestpractices  blog  bsd  build  butwhy  c  check  cli  coding  colour  columns  commandline  commonlisp  comphistory  completeness  complexity  compression  computer  computers  computerscience  concurrency  config  configuration  consistency  console  coreutils  correctness  cron  crontab  crypt  csh  cygwin  darwin  delicious  design  dev  developement  developer  development  devops  disk  doc  docker  documentation  dragonfly.bsd  editor  efficiency  excellent  explained  fdisk  file  filesystem  flexget  fork  free  freebsd  freesoftware  games  generator  git  github  gnu  groundbreaking  guide  guru  gzip  hacker-news-comments  hardware  historical  history  home  howto  hpux  humor  i3  ide  ifttt  import  indices  inotify  interface  interpersonalcommunication  invention  its  jamf  javascript  jwz  kb_cpu  ksh  laptop  libraries  library  license.bsd  license.mit  links  linux  lisp  list  mac  macos  macosx  make  makefile  matthiasdoerfelt  microkernel  mit  music  netbsd  network  newbie  newjersey  nice  node.js  nosql  notes  omni-mate  once_for_all  onethingwell  onlinetools  openbsd  opensource  operating  operatingsystem  operatingsystems  ops  os  osx  overview  paper  pass  passwd  password  passwords  philoosophy  plan9  platform  posix  programming  prompt  pxt  python  raspberrypi  read  redhat  ref  reference  review  rh  richardgabriel  root  rust  scheme  scm  scripting  search  sed  server  sh  shell  siginfo  simplicity  software  solaris  solution  source  standard  stat  steven-wittens  storage  superuser  syntax  sysadmin  system  tar  terminal  text  textui  tilde.team  timeanddate  tmux  tool  tools  toread  tutorial  ui  unix_ops  ux  vcs  via-mastodon  warelogging  watch  webpages  websites  wiki  windows  wiz  work  writing  xi  xml  xslt  xterm  zsh 

Copy this bookmark: