Convert from epoch timestamp to human readable date
Hi everybody,
I want to retrieve a human readable date from an fpga target of a sbRIO9636 ,so what is the function which can convert an epoch timestamp to a human readable date ?
(Noting that i need to retrieve the second,minute,hour,day,month,year... from the fpga target of this device)
Thanks
I have a program which retrieve the current time of windows (with the Get Date/Time in Seconds and Seconds to Date/time functions) and calculate the julian day parameter by using the second,minute,hour,day,month and year wich are displayed on the elements of the Unbundle By Name function (connected in the output of Seconds to Date/time function).
This program works within windows and real time but I can't run it in the chassis of the sbRIO (errors displayed that these functions above aren't supported in the current target)
Can i use another method to solve this problem.
(See the front panel of this program in the following attached file)
Attachments:
julian day.PNG 110 KB
Similar Messages
-
Convert from IBM DB2 and IBM Net.Data
We currently have an DB2 database that will be converted to Oracle. We have developed a web based application using IBM's Net.Data to access the DB2 database. Has anyone converted a Net.Data application for use with Oracle directly of converted the application to something else that would allow access to an Oracle database. Thanks in advance
Hello,
unfortunately there is no plugin for DB2 on OS/390 or z/OS.
Migrations of DB2 needed to be done with the old Oracle Migration Workbench. But that excluded the OS/390 or z/OS platform:
From the following note in My Oracle Support: Migration from DB2 to Oracle (Doc ID 200288.1):
At the moment there is not a plug-in for DB2 on OS390/zOS.
Starting with SQL Developer 2.1, DB2 databases can be migrated using the SQL Developer Migration Workbench. But the "New Feature List 2.1" at http://www.oracle.com/technology/products/database/sql_developer/files/NewFeatureList21.htm is telling us:
+9. Migrations and Third Party Database Support Third Party Browsing DB2 UDB+
Consult the following My Oracle Support note for further alternatives: Options for Connecting to Foreign Data Stores and Non-Oracle Databases (Doc ID 233876.1)
One chapter in the mentioned note says:
If OMWB cannot be used for the migration then other options include a manual
migration. This could be done using a transparent gateway or generic connectivity
to copy tables, or by loading data into flat files and loading into the Oracle
database using SQL*Loader.
Oracle Consulting can help you to do this.
Best regards
Wolfgang
Edited by: wkobargs on Mar 2, 2010 4:00 AM -
Unix timestamp conversion to human readable representation ...
Hi,
I map unix timestamps from MaxDB to the controller context of Web Dynpro and display the results in a table. Is there a smart way to convert the timestamps to human readable date and time? Maybe some way to manipulate the table values with a function before they are written ..?
For now, I create a new node in the context and manually set each value with the according date/time representation ... but thats pretty cumbersome.
Thank you very much for your help!
Cheers,
borisHi Boris,
Check http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
Date currentTime_1 = new Date(longUnixTimestamp);
String dateString = formatter.format(currentTime_1);
I would suggest you to create a calculated attribute under the same node as initial timestamp value and return a result of SimpleDateFormat.format().
Best regards, Maksim Rashchynski. -
Can we extract blob objects from sql database to a human readable format?
Hi All,
I have question How can we extract
blob objects from Sql database to human readable format ?
Blob includes Images, text and docs.
Thanks
Moug
Best Regards MougOne thing you can do if its sql 2012 or later is to load the blob data to FileTable created in database. Then you would be able to physically browse to directory it points and see all files in its native format.
see this for more details
http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Convert from timestamp to date in a table
Hi All,
I have a table in oracle 10g r2.
I want to convert from time-stamp to date in a column of my table.
The table contain 10 million records.Please help me out with the easiest way to proceed.
Thanks in advance
USR0072Add a date column to the table
run an UPDATE statement to update the date column from the timestamp column
mark the timestamp column unused (or drop the column) -
Convert java.util.Timestamp to a formatted java.util.date
Hi,
I am trying to convert a java.util.TimeStamp date from the DB to a formatted date object. So, how can I convert this TimeStamp into an hourly or daily format that will return me a java.util.Date object? I was trying to convert the TimeStamp using SimpleDateFormat and then parse out to a Date object, but this isn't working. This is what I need
TimeStamp converted to an "Hourly" date object --> 12:00pm
TimeStamp converted to a "Monthly" date object --> MayHi,
I am trying to convert a java.util.TimeStamp date
from the DB to a formatted date object. I don't know what a "formatted date object" is. Do you mean a String?
So, how can
I convert this TimeStamp into an hourly or daily
format that will return me a java.util.Date object?I don't know what you mean when you say "...int an hourly or daily format that will return me a java.util.Date object". A format is a String, are you wanting to parse that into a java.util.Date object?
I was trying to convert the TimeStamp using
SimpleDateFormat and then parse out to a Date
object, but this isn't working. This is what I
need
TimeStamp converted to an "Hourly" date object -->
12:00pmThat's a String then?
A java.sql.Timestamp extends java.util.Date. So if you've a Timestamp, then you can use it as you would a java.util.Date. If you want a String, then as you say use SimpleDateFormat with the appropriate format string.
Good Luck
Lee -
Hi Every one,
How to send DATE format to the sales_order table for order_date column from iOS.
I tried like this..
@try {
SUP105Sales_order *insertRow =[[SUP105Sales_order alloc]init];
int32_t idValue =2671;
int32_t custID =103;
int32_t sales =506;
insertRow.id_=idValue;
insertRow.cust_id=custID;
insertRow.order_date=[NSDate date];
insertRow.fin_code_id=@"r1";
insertRow.region=@"Hyd";
insertRow.sales_rep=sales;
[insertRow save];
[insertRow submitPending];
[SUP105SUP105DB synchronize];
@catch (NSException *exception) {
NSLog(@"Exception---%@",exception.description);
In server log:
2014-02-28 16:39:41.833 WARN Other Thread-182 [SUP105.server.SUP105DB]{"_op":"C","level":5,"code":412,"eisCode":"257","message":"com.sybase.jdbc3.jdbc.SybSQLException:SQL Anywhere Error -157: Cannot convert '' to a timestamp","component":"Sales_order","entityKey":"3210004","operation":"create","requestId":"3210005","timestamp":"2014-02-28 11:09:41.646","messageId":0,"_rc":0}
I strongly believe the above error for because of Date format..
Can any one help me me how to send date to database in SUP in iOS??I Found solution after long time, use Timestamp datatype instead of Date datatype..it works for me..
-
How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.
Great hearing for you all! I thought I was all alone this past weekend. I did learn a lot this weekend. I really like the InDesign product.(half-the-battle) But to be helped by the prestigious “Sandee Cohen” was an honor indeed.” I ordered the InDesign CC today. Peter, I appreciate all the feedback on Lynda too. They are loaded with lots of good videos. Derek too honed in on one of the most important aspects! Since I have been working with Word for most of the first portion of the book this will be a big help. I looked at the comments big help ! Thanks a ton ALL! Have a wonder day or evening whenever you read this reply.
-
How to convert from line chart data to CSV format
Hi ,
I am using Flex 3 and AS.
I am getting data from MS SQL and display the data as line
chart this is ok.
But i want to convert this line chart data to CSV or .xsl
format.I find one example in fourms the from data grid to CSV
For this URL is
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
But i want Line chart to CSV.Please help me.Line chart is a just a visual representation of some data
that's sitting in your database. Isn't it? You load this in Flex,
probably using HTTPService class, and pass it to some chart object.
Now when use says that she needs it in CSV format, you're
gonna have to send another request to the server to produce the
same data, convert into CSV or XLS format and let user download it.
Of course, if use doesn't want to download, you don't have to
go to the server, at least for CSV format. You can convert the same
data that used plot the chart to convert to CSV.
Am I missing something here?
ATTA -
Cannot convert from java.util.Date to java.sql.Date
In the below code am trying to get the current date and 60 days prior date:
Date todayDate;
Date Sixtydaysprior;
String DATE_FORMAT = "MM/dd/yy";
DateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
Calendar cal = Calendar.getInstance();
todayDate = sdf.parse(sdf.format(cal.getTime()));
cal.add(Calendar.DATE, -60);
Sixtydaysprior = sdf.parse(sdf.format(cal.getTime()));I have imported following files:
<%@page
import="java.util.Calendar,
java.text.SimpleDateFormat,
java.text.ParseException,
java.util.*"
%>Shows up following error msg:
Type mismatch: cannot convert from java.util.Date to java.sql.Date
Thanks.
Edited by: MiltonDetroja on May 22, 2009 11:03 AMShows up following error msg:
Type mismatch: cannot convert from java.util.Date to java.sql.Date
I don't think this exception is thrown from the portion of code you have shown. As clearly specified in exception message, you cannot cast an instance of java.util.Date to java.sql.Date. you will need to do something like this
java.util.Date today = new java.util.Date();
long t = today.getTime();
java.sql.Date dt = new java.sql.Date(t); -
What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.
This has worked fine with MobileMe with only a couple of minor glitches in the past.
Any experience doing this the "right" way?The warranty entitles you to complimentary phone support for the first 90 days of ownership.
-
How can I convert from Modbus raw data to engineering units using a formula?
Within Lookout, I have several Modbus numerical input types that do not have a linear corespondence to the Engineering values they represent. How can I display these values accurately using a formula to convert from the raw data to an engineering value?
I don't quite understand your reply. I'm using Lookout 6.0.2, logged in as Administrator, in Edit Mode. The Modbus object is named RTU06_SAV. The Active member is 30002 with an alias of SAVfmSMT_RSL.
Following your instructions, I opened Object Explorer and right-clicked on RTU06_SAV.
This opened a menu containing: Refresh, Cut, Copy, Rename, Delete, Edit connections..., Edit Data Member Configuration, Configure Network Security and Properties.
I assumed that I should select Edit Data Member Configuration, but maybe I'm wrong.
Within Data Member Configuration I can set up Linear Scaling between Raw data and Engineering data. I know how to do that, but what I need to know is how to convert Raw data to Engineering data using a formula representing a non-linear transformation (such as a converion to a logarithmic value or perhaps a formula derived by fitting the formula to a curve on a calibration chart).
Once I have this my Engineering data can be represented on a control panel as both a numeric value AND as a correctly reading Gauge. It can also be properly represented on a HyperTrend graph.
What do you suggest? -
Convert from String data type to Character data type
Hi...,
I'm a beginner. I try to make a program. But I don't know how to convert from string to data type. I try to make a calculator with GUI window. And when somebody put "+" to one of the window, I just want to convert it to Character instead of String.
Sorry of my bad english..
Please help me....
ThanksString s = "a+b";
char theplus = s.charAt(1); -
Hi,
I want to convert from date to number. How can I do?
Thanks
[email protected]That rather depends on what sort of number you want.
You can probably get what you want by a combination of to_char and to_number. -
Converting CLLocation to a human-readable place name string
In a text-based application I want to enable a simple geotagging feature. Is there a way to convert a CLLocation latitude-longitude information into an actual place name, like "New York, NY", "Vancouver, B.C., Canada", "Birmingham, England" etc.? It doesn't need to be terribly precise, if it can recognize all towns/cities of more than 100-200K people I will be happy. On the same subject, since I'm new to the whole geotagging/GPS thing (I'm developing on a Touch and have never used a GPS device), what are some other developers doing with regards to presenting location information in a human-readable format? Just knowing the longitude/lattitude seems rather uninspiring to me.
Thanks,
DonutManYou can use Google Maps Reverse Geocoding service.
http://code.google.com/apis/maps/documentation/services.html#ReverseGeocoding
It should be easy to wrap these js functions into Objective-C with -stringByEvaluatingJavaScriptFromString:
I know there is also a pure OBJC Google API framework but I don't know if it includes this.
Maybe you are looking for
-
I keep getting Error code 1604 when trying to restore my Ipod Touch (keeps entering restore mode. never jailbroken) Ive checked all my USB ports they are all 2.0 and all have up to date driver software. Does anyone have any other suggestions for this
-
Cannon all in one being recognised as printer but notscanner
Plug n play - brilliant - no problems with printing - then a few days later I needed to scan. Nope, no scanner selected - so it says! The printer is fine - even updated the software yesterday without any problems. Every button I select that refers to
-
Printing document related to CV02N
HI, PLEASE TELL ME HOW MARK AND PRINT THE DOCUMENT OF CV02N TRANSACTION, ANY FM EXISTS. WHEN I AM PRESSING THE THE PRINT BUTTON, IT IS SHOWING THE POP UP BOX SAYING "Select an original application file first". REGARDS SAMI
-
Details on how to use the RESTful Web Services SDK
Hello, this sounds really interesting for an important use case we're currently developing. Unfortunately, I am not a skilled developer and would therefore need to know two more things: 1) in the beginning, it says ''assumes that there are no paramet
-
Trying to download OSX Mountain Lion, but just says waiting all the time? Anyone know what this could be?