RE: bash script to convert date seconds back to date format..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fair enough....

#/bin/bash

#gets the epoch secs
time=$(date -%s)

#convert back
tstart=$(date -d $start +%H:%M:%S:)"

the above was from a website, although i've yet to get it to work...




-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Ed Greshko
Sent: Wednesday, August 15, 2007 11:41 PM
To: For users of Fedora
Subject: Re: bash script to convert date seconds back to date format..


bruce wrote:
> hi....
> 
> after perusing the web...
> 
> i'm trying to figure out just how to create a bash script, that will get
> date/epoch seconds, and convert the seconds back to a date format...
> 
> for some reason.. i'm missing something!!

Sometimes telling people what you've done so far will go a long way to them
pointing out where you are missing something.  Otherwise, they will just be
doing the work for you and plenty of people have better things to do.  :-)

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux